[config] Register config to bot_base

[version] Bump
This commit is contained in:
Louis Chauvet 2020-04-28 08:49:20 +02:00
parent 15bcd5ebe6
commit d0e5f07b93
Signed by: fomys
GPG Key ID: 1ECA046A9615ABA0
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ import os
class BaseCommand(BaseModule):
def __init__(self, client):
super().__init__(client)
self.com_config = Config(path=os.path.join(client.config["data_folder"], "commands", "config.toml"))
self.com_config = self.client.get_config(path=os.path.join(client.config["data_folder"], "commands", "config.toml"))
self.com_config.register("prefix", factory(c_t.Str))
self.config.register("command_text", factory(c_t.Str))

View File

@ -1,10 +1,10 @@
name = "Commands"
description = "Base class to handle commands"
version = "0.1.0"
bot_version = "~=0.1.0"
version = "0.2.0"
bot_version = "~=0.2.0"
metamodule = true
[dependencies]
mod_base = "~=1.1.0"
mod_base = "~=1.2.0"