This commit is contained in:
iou1name 2021-11-12 09:41:11 -05:00
parent 0f8b590935
commit bcef6330cc

View File

@ -26,8 +26,8 @@ def uptime(bot, trigger):
@commands('updick') @commands('updick')
def updick(bot, trigger): def updick(bot, trigger):
""".updick - Returns the uptime of Fulvia, measured in dicks.""" """.updick - Returns the uptime of Fulvia, measured in dicks."""
if len(trigger.args) < 2: if len(trigger.args) > 1:
if trigger.args[1] in bot.users: if trigger.args[1] in bot.channels[trigger.channel].users:
d = defer.Deferred() d = defer.Deferred()
d.addCallback(idleTime, bot) d.addCallback(idleTime, bot)
bot.memory["idle_callbacks"][trigger.args[1]] = d bot.memory["idle_callbacks"][trigger.args[1]] = d
@ -40,10 +40,10 @@ def updick(bot, trigger):
@commands('upwulf') @commands('upwulf')
def upwulf(bot, trigger): def upwulf(bot, trigger):
""".upwulf - Returns the uptime of Fulvia, measured in Adalwulfs.""" """.upwulf - Returns the uptime of Fulvia, measured in Adalwulfs."""
if len(trigger.args) < 2: if len(trigger.args) > 1:
if trigger.args[1] in bot.users: if trigger.args[1] in bot.channels[trigger.channel].users:
d = defer.Deferred() d = defer.Deferred()
d.addCallback(idleTime, bot) d.addCallback(idleTimeWulf, bot)
bot.memory["idle_callbacks"][trigger.args[1]] = d bot.memory["idle_callbacks"][trigger.args[1]] = d
bot.whois(trigger.args[1]) bot.whois(trigger.args[1])
else: else: