Core bot framework

This commit is contained in:
2021-08-25 22:56:45 +03:00
parent 87f16b6a37
commit 05cb9650ee
17 changed files with 1233 additions and 0 deletions

13
bot/meta/client.py Normal file
View File

@@ -0,0 +1,13 @@
from cmdClient.cmdClient import cmdClient
from .config import Conf
from constants import CONFIG_FILE
# Initialise config
conf = Conf(CONFIG_FILE)
# Initialise client
owners = [int(owner) for owner in conf.bot.getlist('owners')]
client = cmdClient(prefix=conf.bot['prefix'], owners=owners)
client.conf = conf