mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
commit
2774851916
@ -259,7 +259,7 @@ def bot_dictcom_reply_shared(bot, trigger):
|
|||||||
|
|
||||||
# translation
|
# translation
|
||||||
if trigger.sb["dict"][trigger.sb["responsekey"]]["translations"]:
|
if trigger.sb["dict"][trigger.sb["responsekey"]]["translations"]:
|
||||||
rply = SpiceBot.translate.bot_translate_process(bot, rply, trigger.sb["dict"][trigger.sb["responsekey"]]["translations"])
|
rply = SpiceBot.translate.bot_translate_process(rply, trigger.sb["dict"][trigger.sb["responsekey"]]["translations"])
|
||||||
|
|
||||||
# text to precede the output
|
# text to precede the output
|
||||||
if trigger.sb["dict"][trigger.sb["responsekey"]]["prefixtext"] and trigger.sb["success"]:
|
if trigger.sb["dict"][trigger.sb["responsekey"]]["prefixtext"] and trigger.sb["success"]:
|
||||||
@ -276,7 +276,7 @@ def bot_dictcom_reply_shared(bot, trigger):
|
|||||||
# random user
|
# random user
|
||||||
if "$randuser" in rply:
|
if "$randuser" in rply:
|
||||||
if not trigger.is_privmsg:
|
if not trigger.is_privmsg:
|
||||||
randuser = spicemanip.main(SpiceBot.users.random_valid_target(bot, trigger, 'random'))
|
randuser = spicemanip.main(SpiceBot.users.random_valid_target(trigger, 'random'))
|
||||||
else:
|
else:
|
||||||
randuser = trigger.nick
|
randuser = trigger.nick
|
||||||
rply = rply.replace("$randuser", randuser)
|
rply = rply.replace("$randuser", randuser)
|
||||||
@ -352,7 +352,7 @@ def bot_dictcom_gif(bot, trigger):
|
|||||||
if "queryapi" in trigger.sb["dict"].keys():
|
if "queryapi" in trigger.sb["dict"].keys():
|
||||||
searchapis = trigger.sb["dict"][trigger.sb["responsekey"]]["queryapi"]
|
searchapis = trigger.sb["dict"][trigger.sb["responsekey"]]["queryapi"]
|
||||||
else:
|
else:
|
||||||
searchapis = bot.memory["botdict"]["tempvals"]['valid_gif_api_dict'].keys()
|
searchapis = list(SpiceBot.gif.valid_api.keys())
|
||||||
|
|
||||||
if trigger.sb["specified"]:
|
if trigger.sb["specified"]:
|
||||||
if trigger.sb["specified"] > len(queries):
|
if trigger.sb["specified"] > len(queries):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user