mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-11 06:00:59 -05:00
test
This commit is contained in:
parent
5cca211988
commit
4b9e9f9996
@ -311,13 +311,25 @@ class BotCommands():
|
||||
# Commands
|
||||
if str(detected_line).startswith("commands"):
|
||||
comtype = "module"
|
||||
validcoms = eval(str(detected_line).split("commands")[-1])
|
||||
try:
|
||||
validcoms = eval(str(detected_line).split("commands")[-1])
|
||||
except Exception as e:
|
||||
validcoms = e
|
||||
validcoms = []
|
||||
elif str(detected_line).startswith("nickname_commands"):
|
||||
comtype = "nickname"
|
||||
validcoms = eval(str(detected_line).split("nickname_commands")[-1])
|
||||
try:
|
||||
validcoms = eval(str(detected_line).split("nickname_commands")[-1])
|
||||
except Exception as e:
|
||||
validcoms = e
|
||||
validcoms = []
|
||||
elif str(detected_line).startswith("rule"):
|
||||
comtype = "rule"
|
||||
validcoms = eval(str(detected_line).split("rule")[-1])
|
||||
try:
|
||||
validcoms = eval(str(detected_line).split("rule")[-1])
|
||||
except Exception as e:
|
||||
validcoms = e
|
||||
validcoms = []
|
||||
|
||||
if isinstance(validcoms, tuple):
|
||||
validcoms = list(validcoms)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user