add admin.Admin() interface

This commit is contained in:
randomuser 2021-07-21 16:29:44 -05:00
parent bf58b6abcf
commit f7ad09480b
1 changed files with 4 additions and 8 deletions

12
main.py
View File

@ -9,19 +9,15 @@ from db import DuckStats
from channels import ChannelDB
from lang import lang
from admin import Admin
from irctokens import build, Line
from ircrobots import Bot as BaseBot
from ircrobots import Server as BaseServer
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:
async def new_duck(self):
self.messages = 0