mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
don't load asterisk regex
This commit is contained in:
parent
23404108f6
commit
b2a7c5e3ca
@ -97,9 +97,9 @@ def setup(bot):
|
|||||||
detected_lines.append(line)
|
detected_lines.append(line)
|
||||||
|
|
||||||
if len(detected_lines):
|
if len(detected_lines):
|
||||||
bot.memory['SpiceBot_CommandsQuery']['counts'] += 1
|
|
||||||
|
|
||||||
filelinelist = []
|
filelinelist = []
|
||||||
|
currentsuccesslines = 0
|
||||||
for detected_line in detected_lines:
|
for detected_line in detected_lines:
|
||||||
|
|
||||||
# Commands
|
# Commands
|
||||||
@ -117,10 +117,19 @@ def setup(bot):
|
|||||||
validcoms = list(validcoms)
|
validcoms = list(validcoms)
|
||||||
else:
|
else:
|
||||||
validcoms = [validcoms]
|
validcoms = [validcoms]
|
||||||
|
if "(.*)" in validcoms:
|
||||||
|
while "(.*)" in validcoms:
|
||||||
|
validcoms.remove("(.*)")
|
||||||
|
|
||||||
|
if len(validcoms):
|
||||||
validcomdict = {"comtype": comtype, "validcoms": validcoms}
|
validcomdict = {"comtype": comtype, "validcoms": validcoms}
|
||||||
filelinelist.append(validcomdict)
|
filelinelist.append(validcomdict)
|
||||||
|
currentsuccesslines += 1
|
||||||
|
|
||||||
|
if currentsuccesslines:
|
||||||
|
bot.memory['SpiceBot_CommandsQuery']['counts'] += 1
|
||||||
|
|
||||||
|
if len(filelinelist):
|
||||||
for atlinefound in filelinelist:
|
for atlinefound in filelinelist:
|
||||||
|
|
||||||
dict_from_file = dict()
|
dict_from_file = dict()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user