added .clear to clear log
This commit is contained in:
parent
d8d8bf029a
commit
4e1ae63ffe
2 changed files with 24 additions and 0 deletions
|
@ -37,6 +37,17 @@ def restart(inp, input=None, db=None, notice=None):
|
|||
sys.exit()
|
||||
|
||||
|
||||
@hook.command
|
||||
def clear(inp, input=None, db=None, notice=None):
|
||||
".clear -- Clears the bot's log"
|
||||
if not input.nick in input.bot.config["admins"]:
|
||||
notice("Only bot admins can use this command!")
|
||||
return
|
||||
time.sleep(3)
|
||||
subprocess.call(['lib/clear.py'])
|
||||
sys.exit()
|
||||
|
||||
|
||||
@hook.command
|
||||
def join(inp, input=None, db=None, notice=None):
|
||||
".join <channel> -- Joins <channel>."
|
||||
|
|
Reference in a new issue