mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 22:49:53 -05:00
plural still there
This commit is contained in:
parent
534ccabf1b
commit
c318ccee6c
@ -115,10 +115,11 @@ class BotPrerun():
|
|||||||
|
|
||||||
def hyphen_arg_handler(self, bot, trigger, argsdict):
|
def hyphen_arg_handler(self, bot, trigger, argsdict):
|
||||||
|
|
||||||
hyphenarg = argsdict["hyphen_arg"]
|
if not argsdict["hyphen_arg"]:
|
||||||
|
return
|
||||||
|
|
||||||
# Commands that cannot run via privmsg
|
# Commands that cannot run via privmsg
|
||||||
if hyphenarg in ['enable']:
|
if argsdict["hyphen_arg"] in ['enable']:
|
||||||
|
|
||||||
if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']):
|
if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']):
|
||||||
bot.say("I was unable to disable this command due to privilege issues.")
|
bot.say("I was unable to disable this command due to privilege issues.")
|
||||||
@ -136,7 +137,7 @@ class BotPrerun():
|
|||||||
bot.say(argsdict["com"] + " is now enabled in " + str(trigger.sender))
|
bot.say(argsdict["com"] + " is now enabled in " + str(trigger.sender))
|
||||||
return
|
return
|
||||||
|
|
||||||
elif hyphenarg in ['disable']:
|
elif argsdict["hyphen_arg"] in ['disable']:
|
||||||
|
|
||||||
if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']):
|
if not command_permissions_check(bot, trigger, ['admins', 'owner', 'OP', 'ADMIN', 'OWNER']):
|
||||||
bot.say("I was unable to disable this command due to privilege issues.")
|
bot.say("I was unable to disable this command due to privilege issues.")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user