From d0e5f07b9357e787153d739f5c2c0353c361eac5 Mon Sep 17 00:00:00 2001 From: Louis Chauvet Date: Tue, 28 Apr 2020 08:49:20 +0200 Subject: [PATCH] [config] Register config to bot_base [version] Bump --- __init__.py | 2 +- infos.toml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/__init__.py b/__init__.py index 864c887..7a88387 100644 --- a/__init__.py +++ b/__init__.py @@ -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)) diff --git a/infos.toml b/infos.toml index 37c6215..dc0b3b4 100644 --- a/infos.toml +++ b/infos.toml @@ -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" \ No newline at end of file +mod_base = "~=1.2.0" \ No newline at end of file