Core bot framework
This commit is contained in:
13
bot/meta/client.py
Normal file
13
bot/meta/client.py
Normal 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
|
||||
Reference in New Issue
Block a user