mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-12 14:39:54 -05:00
repair self
This commit is contained in:
parent
c318ccee6c
commit
d66c29fda9
@ -129,7 +129,7 @@ class BotPrerun():
|
|||||||
bot.notice("This command must be run in a channel you which to enable it in.", trigger.nick)
|
bot.notice("This command must be run in a channel you which to enable it in.", trigger.nick)
|
||||||
return
|
return
|
||||||
|
|
||||||
if not commands.check_disabled_commands(self, bot, argsdict["realcom"], trigger.sender):
|
if not commands.check_disabled_commands(bot, argsdict["realcom"], trigger.sender):
|
||||||
bot.notice(argsdict["com"] + " is already enabled in " + str(trigger.sender), trigger.nick)
|
bot.notice(argsdict["com"] + " is already enabled in " + str(trigger.sender), trigger.nick)
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -147,14 +147,14 @@ class BotPrerun():
|
|||||||
bot.notice("This command must be run in a channel you which to disable it in.", trigger.nick)
|
bot.notice("This command must be run in a channel you which to disable it in.", trigger.nick)
|
||||||
return
|
return
|
||||||
|
|
||||||
if commands.check_disabled_commands(self, bot, argsdict["realcom"], trigger.sender):
|
if commands.check_disabled_commands(bot, argsdict["realcom"], trigger.sender):
|
||||||
bot.notice(argsdict["com"] + " is already disabled in " + str(trigger.sender), trigger.nick)
|
bot.notice(argsdict["com"] + " is already disabled in " + str(trigger.sender), trigger.nick)
|
||||||
return
|
return
|
||||||
|
|
||||||
trailingmessage = spicemanip.main(argsdict["args"], 0) or "No reason given."
|
trailingmessage = spicemanip.main(argsdict["args"], 0) or "No reason given."
|
||||||
timestamp = str(datetime.datetime.utcnow())
|
timestamp = str(datetime.datetime.utcnow())
|
||||||
|
|
||||||
commands.set_command_disabled(self, bot, argsdict["realcom"], trigger.sender, timestamp, trailingmessage, trigger.nick)
|
commands.set_command_disabled(bot, argsdict["realcom"], trigger.sender, timestamp, trailingmessage, trigger.nick)
|
||||||
bot.say(argsdict["com"] + " is now disabled in " + str(trigger.sender))
|
bot.say(argsdict["com"] + " is now disabled in " + str(trigger.sender))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user