mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
test
This commit is contained in:
parent
3acbf7c6fc
commit
7809a7f448
@ -58,6 +58,7 @@ class BotGif():
|
|||||||
|
|
||||||
self.valid_api[gif_api]["comtype"] = "gif_prefix"
|
self.valid_api[gif_api]["comtype"] = "gif_prefix"
|
||||||
self.valid_api[gif_api]["validcoms"] = [self.valid_api[gif_api]["filename"]]
|
self.valid_api[gif_api]["validcoms"] = [self.valid_api[gif_api]["filename"]]
|
||||||
|
logs.log('SpiceBot_Gif', str(self.valid_api[gif_api]), True)
|
||||||
botcommands.register(self.valid_api[gif_api])
|
botcommands.register(self.valid_api[gif_api])
|
||||||
|
|
||||||
def setup_gif(self):
|
def setup_gif(self):
|
||||||
@ -134,7 +135,6 @@ class BotGif():
|
|||||||
self.valid_api[currentapi]["cache"][str(searchdict["searchquery"]).lower()] = []
|
self.valid_api[currentapi]["cache"][str(searchdict["searchquery"]).lower()] = []
|
||||||
# assemble url
|
# assemble url
|
||||||
url = self.gif_url_assemble(currentapi, str(searchdict["searchquery"]), str(searchdict["searchlimit"]), searchdict['nsfw'])
|
url = self.gif_url_assemble(currentapi, str(searchdict["searchquery"]), str(searchdict["searchlimit"]), searchdict['nsfw'])
|
||||||
logs.log('SpiceBot_Gif', str(url), True)
|
|
||||||
# fetch results
|
# fetch results
|
||||||
self.fetch_gif_results(currentapi, str(searchdict["searchquery"]), url)
|
self.fetch_gif_results(currentapi, str(searchdict["searchquery"]), url)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user