mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
attempt reversion
This commit is contained in:
parent
503f2e826a
commit
1471bdac0c
@ -39,6 +39,9 @@ mkdir /run/sopel
|
||||
echo $$ > /run/sopel/sopel-SpiceBotSERV.pid
|
||||
chmod -R 777 /run/sopel/
|
||||
|
||||
apt install mysql-server libmysqlclient-dev -y
|
||||
pip3 install mysql
|
||||
|
||||
|
||||
cp /home/sopel/SpiceBot/System-Files/Config/SpiceBot.cfg /home/sopel/SpiceBot.cfg
|
||||
cp /home/sopel/SpiceBot/System-Files/systemd/SpiceBot.service /lib/systemd/system/SpiceBot.service
|
||||
|
||||
@ -21,13 +21,13 @@ def query_detection(bot, trigger):
|
||||
|
||||
commands_list = dict()
|
||||
for commandstype in bot.memory['SpiceBot_CommandsQuery']['commands'].keys():
|
||||
if commandstype != 'rule':
|
||||
for com in bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype].keys():
|
||||
if com not in commands_list.keys():
|
||||
if commandstype == 'nickname':
|
||||
commands_list[str(bot.nick) + " " + com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
else:
|
||||
commands_list[com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
# if commandstype != 'rule':
|
||||
for com in bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype].keys():
|
||||
if com not in commands_list.keys():
|
||||
if commandstype == 'nickname':
|
||||
commands_list[str(bot.nick) + " " + com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
else:
|
||||
commands_list[com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||
|
||||
triggerargsarray = spicemanip.main(trigger, 'create')
|
||||
|
||||
@ -79,7 +79,6 @@ def query_detection(bot, trigger):
|
||||
return
|
||||
|
||||
elif not querycommand:
|
||||
bot.say("no query command")
|
||||
return
|
||||
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user