test
This commit is contained in:
parent
4655e02eee
commit
9477ec3192
@ -8,16 +8,16 @@ import os
|
||||
import pathlib
|
||||
|
||||
from .SBCore import SpiceBotCore_OBJ
|
||||
# from .SBCore.config import SpiceBot_Conf
|
||||
from .SBCore.config import SpiceBot_Conf
|
||||
|
||||
SCRIPT_DIR = pathlib.Path(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
sb = SpiceBotCore_OBJ(SCRIPT_DIR)
|
||||
|
||||
|
||||
# def configure(config):
|
||||
# config.define_section("SpiceBot", SpiceBot_Conf, validate=False)
|
||||
# config.SpiceBot_Conf.configure_setting('multi_split_key', 'key to split multi-commands')
|
||||
def configure(config):
|
||||
config.define_section("SpiceBot", SpiceBot_Conf, validate=False)
|
||||
config.SpiceBot_Conf.configure_setting('multi_split_key', 'key to split multi-commands')
|
||||
|
||||
|
||||
def setup(bot):
|
||||
|
||||
@ -176,7 +176,7 @@ class ComRun():
|
||||
recipients = self.trigger.sender
|
||||
sb.osd(messages, recipients, text_method, max_messages=-1)
|
||||
|
||||
@property
|
||||
# @property
|
||||
def required_privileges(self):
|
||||
bot_level = 0
|
||||
channel_level = 0
|
||||
@ -192,7 +192,7 @@ class ComRun():
|
||||
"channel": channel_level
|
||||
}
|
||||
|
||||
@property()
|
||||
# @property()
|
||||
def required_privileges_text(self):
|
||||
ret_text = "This command requries privileges of/above the following"
|
||||
if self.required_privileges["bot"]:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user