generated from PDBA/module-template
[config] Register config to bot_base
[version] Bump
This commit is contained in:
parent
15bcd5ebe6
commit
d0e5f07b93
@ -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))
|
||||
|
||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user