def timer(self, ctx):
""" Controls the channel's timer. Do '!help timer' for sub-commands.
None of the sub-commands will really work without using `setup`
first.
"""
if ctx.invoked_subcommand is None:
sect = ctx.message.content.split(' ')
if len(sect) < 2 or sect[1] is None:
log = "{} invoked an incomplete timer command."
send = "Timers are allowed here. Now what?"
else:
log = "{} invoked an invalid timer command."
send = "Invalid timer sub-command."
else:
return
lib.log(log.format(lib.get_author_name(ctx)),
channel_id=lib.get_channel_id(ctx))
await self.bot.say(send, delete_after=self.bot.ans_lifespan)
评论列表
文章目录