[config] Register config to bot_base
[version] Bump
This commit is contained in:
parent
623db7e3ed
commit
9e6fc9d9d0
@ -14,7 +14,7 @@ class BaseModule:
|
||||
self.infos = toml.load(f)
|
||||
self.name = self.infos["name"]
|
||||
self.client = client
|
||||
self.config = Config(path=os.path.join(client.config["data_folder"], self.name.lower(), "config.toml"))
|
||||
self.config = self.client.get_config(path=os.path.join(client.config["data_folder"], self.name.lower(), "config.toml"))
|
||||
|
||||
async def _run_event(self, coro, event_name, *args, **kwargs):
|
||||
try:
|
||||
|
@ -1,8 +1,8 @@
|
||||
name = "Base"
|
||||
description = "Base module to avoid code repetition"
|
||||
|
||||
version = "1.1.0"
|
||||
bot_version = "~=0.1.0"
|
||||
version = "1.2.0"
|
||||
bot_version = "~=0.2.0"
|
||||
|
||||
metamodule = true
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user