mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 06:59:53 -05:00
better
This commit is contained in:
parent
dc566d2096
commit
ef4bd6078c
@ -260,9 +260,6 @@ class BotCommands():
|
|||||||
if addnothing:
|
if addnothing:
|
||||||
currentsuccesslines += 0
|
currentsuccesslines += 0
|
||||||
|
|
||||||
if currentsuccesslines:
|
|
||||||
self.dict['counts'] += 1
|
|
||||||
|
|
||||||
if len(filelinelist):
|
if len(filelinelist):
|
||||||
for vcomdict in filelinelist:
|
for vcomdict in filelinelist:
|
||||||
self.register(vcomdict)
|
self.register(vcomdict)
|
||||||
|
|||||||
@ -59,13 +59,9 @@ class BotGif():
|
|||||||
if apikey:
|
if apikey:
|
||||||
self.valid_api[gif_api]["apikey"] = apikey
|
self.valid_api[gif_api]["apikey"] = apikey
|
||||||
|
|
||||||
for validgifapi in list(self.valid_api.keys()):
|
self.valid_api[gif_api]["comtype"] = "gif_prefix"
|
||||||
botcommands.dict['counts'] += 1
|
self.valid_api[gif_api]["validcoms"] = [self.valid_api[gif_api]["filename"]]
|
||||||
command_dict = {
|
botcommands.register(self.valid_api[gif_api])
|
||||||
"comtype": "gif_prefix",
|
|
||||||
"validcoms": [validgifapi]
|
|
||||||
}
|
|
||||||
botcommands.register(command_dict)
|
|
||||||
|
|
||||||
def setup_gif(self):
|
def setup_gif(self):
|
||||||
botconfig.define_section("SpiceBot_Gif", SpiceBot_Gif_MainSection, validate=False)
|
botconfig.define_section("SpiceBot_Gif", SpiceBot_Gif_MainSection, validate=False)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user