mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
test
This commit is contained in:
parent
5cca211988
commit
4b9e9f9996
@ -311,13 +311,25 @@ class BotCommands():
|
|||||||
# Commands
|
# Commands
|
||||||
if str(detected_line).startswith("commands"):
|
if str(detected_line).startswith("commands"):
|
||||||
comtype = "module"
|
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"):
|
elif str(detected_line).startswith("nickname_commands"):
|
||||||
comtype = "nickname"
|
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"):
|
elif str(detected_line).startswith("rule"):
|
||||||
comtype = "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):
|
if isinstance(validcoms, tuple):
|
||||||
validcoms = list(validcoms)
|
validcoms = list(validcoms)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user