forked from Firepup650/FireBot
Formatting
This commit is contained in:
parent
13b9f27994
commit
b0e79861ad
2 changed files with 9 additions and 3 deletions
10
bot.py
10
bot.py
|
@ -83,7 +83,9 @@ class bot(bare.bot):
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
TMFeed.extend([line.strip().split()])
|
TMFeed.extend([line.strip().split()])
|
||||||
self.markov = MarkovBot(TMFeed)
|
self.markov = MarkovBot(TMFeed)
|
||||||
conf.prefix = (conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else ".")
|
conf.prefix = (
|
||||||
|
conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else "."
|
||||||
|
)
|
||||||
self.log(f"Start init for {self.server}")
|
self.log(f"Start init for {self.server}")
|
||||||
|
|
||||||
def connect(self) -> None:
|
def connect(self) -> None:
|
||||||
|
@ -321,7 +323,11 @@ class bot(bare.bot):
|
||||||
if "interval" in conf.servers[self.server]
|
if "interval" in conf.servers[self.server]
|
||||||
else 50
|
else 50
|
||||||
)
|
)
|
||||||
conf.prefix = (conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else ".")
|
conf.prefix = (
|
||||||
|
conf.servers[server]["prefix"]
|
||||||
|
if "prefix" in conf.servers[server]
|
||||||
|
else "."
|
||||||
|
)
|
||||||
reload(cmds)
|
reload(cmds)
|
||||||
reload(handlers)
|
reload(handlers)
|
||||||
self.msg("Reloaded successfully", chan)
|
self.msg("Reloaded successfully", chan)
|
||||||
|
|
|
@ -67,7 +67,7 @@ servers: dict[str, dict[str, Any]] = {
|
||||||
"#firepup650": 0,
|
"#firepup650": 0,
|
||||||
},
|
},
|
||||||
"admins": ["firepup650"],
|
"admins": ["firepup650"],
|
||||||
"prefix": "!"
|
"prefix": "!",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
admin_hosts: list[str] = ["firepup.firepi", "47.221.227.180"]
|
admin_hosts: list[str] = ["firepup.firepi", "47.221.227.180"]
|
||||||
|
|
Loading…
Reference in a new issue