mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
detected_line
This commit is contained in:
parent
8d2e61567f
commit
89ef03d82c
@ -103,15 +103,15 @@ def setup(bot):
|
|||||||
for detected_line in detected_lines:
|
for detected_line in detected_lines:
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
if str(line).startswith("commands"):
|
if str(detected_line).startswith("commands"):
|
||||||
comtype = "module"
|
comtype = "module"
|
||||||
validcoms = eval(str(line).split("commands")[-1])
|
validcoms = eval(str(detected_line).split("commands")[-1])
|
||||||
elif str(line).startswith("nickname_commands"):
|
elif str(detected_line).startswith("nickname_commands"):
|
||||||
comtype = "nickname"
|
comtype = "nickname"
|
||||||
validcoms = eval(str(line).split("nickname_commands")[-1])
|
validcoms = eval(str(detected_line).split("nickname_commands")[-1])
|
||||||
elif str(line).startswith("rule"):
|
elif str(detected_line).startswith("rule"):
|
||||||
comtype = "rule"
|
comtype = "rule"
|
||||||
validcoms = eval(str(line).split("rule")[-1])
|
validcoms = eval(str(detected_line).split("rule")[-1])
|
||||||
|
|
||||||
if isinstance(validcoms, tuple):
|
if isinstance(validcoms, tuple):
|
||||||
validcoms = list(validcoms)
|
validcoms = list(validcoms)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user