test none

This commit is contained in:
deathbybandaid 2019-06-25 09:02:26 -04:00
parent d53c293dc4
commit 11ce6e720c
2 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ def prerun(trigger_command_type='module'):
@functools.wraps(function) @functools.wraps(function)
def internal_prerun(bot, trigger, *args, **kwargs): def internal_prerun(bot, trigger, *args, **kwargs):
return
# Primary command used for trigger, and a list of all words # Primary command used for trigger, and a list of all words
trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type) trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type)

View File

@ -9,8 +9,8 @@ import time
import sopel_modules.SpiceBot as SpiceBot import sopel_modules.SpiceBot as SpiceBot
@sopel.module.nickname_commands('uptime')
@SpiceBot.prerun('nickname') @SpiceBot.prerun('nickname')
@sopel.module.nickname_commands('uptime')
def bot_command_uptime(bot, trigger): def bot_command_uptime(bot, trigger):
timesince = str(SpiceBot.humanized_time(time.time() - SpiceBot.events.BOT_UPTIME)) + " ago." timesince = str(SpiceBot.humanized_time(time.time() - SpiceBot.events.BOT_UPTIME)) + " ago."
bot.osd("I have been running since " + timesince) bot.osd("I have been running since " + timesince)