add admin.Admin() interface
This commit is contained in:
parent
bf58b6abcf
commit
f7ad09480b
12
main.py
12
main.py
|
@ -9,19 +9,15 @@ from db import DuckStats
|
||||||
|
|
||||||
from channels import ChannelDB
|
from channels import ChannelDB
|
||||||
|
|
||||||
|
from lang import lang
|
||||||
|
|
||||||
|
from admin import Admin
|
||||||
|
|
||||||
from irctokens import build, Line
|
from irctokens import build, Line
|
||||||
from ircrobots import Bot as BaseBot
|
from ircrobots import Bot as BaseBot
|
||||||
from ircrobots import Server as BaseServer
|
from ircrobots import Server as BaseServer
|
||||||
from ircrobots import ConnectionParams
|
from ircrobots import ConnectionParams
|
||||||
|
|
||||||
lang = {
|
|
||||||
"noduck": "there was no duck! you missed by {} seconds!",
|
|
||||||
"noduckstart": "there was no duck!",
|
|
||||||
"duckcought": "duck has been cought by {} in channel {} in {} seconds!",
|
|
||||||
"duck": "・゜゜・。。・゜゜\_o< QUACK!",
|
|
||||||
"stats": "{} has befriended {} ducks in {} different channels, having a befriend/loss ratio of {}.",
|
|
||||||
}
|
|
||||||
|
|
||||||
class DuckLogic:
|
class DuckLogic:
|
||||||
async def new_duck(self):
|
async def new_duck(self):
|
||||||
self.messages = 0
|
self.messages = 0
|
||||||
|
|
Loading…
Reference in New Issue