mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -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
|
echo $$ > /run/sopel/sopel-SpiceBotSERV.pid
|
||||||
chmod -R 777 /run/sopel/
|
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/Config/SpiceBot.cfg /home/sopel/SpiceBot.cfg
|
||||||
cp /home/sopel/SpiceBot/System-Files/systemd/SpiceBot.service /lib/systemd/system/SpiceBot.service
|
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()
|
commands_list = dict()
|
||||||
for commandstype in bot.memory['SpiceBot_CommandsQuery']['commands'].keys():
|
for commandstype in bot.memory['SpiceBot_CommandsQuery']['commands'].keys():
|
||||||
if commandstype != 'rule':
|
# if commandstype != 'rule':
|
||||||
for com in bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype].keys():
|
for com in bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype].keys():
|
||||||
if com not in commands_list.keys():
|
if com not in commands_list.keys():
|
||||||
if commandstype == 'nickname':
|
if commandstype == 'nickname':
|
||||||
commands_list[str(bot.nick) + " " + com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
commands_list[str(bot.nick) + " " + com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||||
else:
|
else:
|
||||||
commands_list[com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
commands_list[com] = bot.memory['SpiceBot_CommandsQuery']['commands'][commandstype][com]
|
||||||
|
|
||||||
triggerargsarray = spicemanip.main(trigger, 'create')
|
triggerargsarray = spicemanip.main(trigger, 'create')
|
||||||
|
|
||||||
@ -79,7 +79,6 @@ def query_detection(bot, trigger):
|
|||||||
return
|
return
|
||||||
|
|
||||||
elif not querycommand:
|
elif not querycommand:
|
||||||
bot.say("no query command")
|
|
||||||
return
|
return
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user