mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-10 21:50:59 -05:00
test none
This commit is contained in:
parent
d53c293dc4
commit
11ce6e720c
@ -22,6 +22,7 @@ def prerun(trigger_command_type='module'):
|
||||
|
||||
@functools.wraps(function)
|
||||
def internal_prerun(bot, trigger, *args, **kwargs):
|
||||
return
|
||||
|
||||
# Primary command used for trigger, and a list of all words
|
||||
trigger_args, trigger_command = make_trigger_args(trigger.args[1], trigger_command_type)
|
||||
|
||||
@ -9,8 +9,8 @@ import time
|
||||
import sopel_modules.SpiceBot as SpiceBot
|
||||
|
||||
|
||||
@sopel.module.nickname_commands('uptime')
|
||||
@SpiceBot.prerun('nickname')
|
||||
@sopel.module.nickname_commands('uptime')
|
||||
def bot_command_uptime(bot, trigger):
|
||||
timesince = str(SpiceBot.humanized_time(time.time() - SpiceBot.events.BOT_UPTIME)) + " ago."
|
||||
bot.osd("I have been running since " + timesince)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user