Update refreshdb and ping commands
This commit is contained in:
parent
abf663706d
commit
582523bda5
@ -356,13 +356,13 @@ def sync_modes(var):
|
|||||||
|
|
||||||
channels.Main.mode(*voices)
|
channels.Main.mode(*voices)
|
||||||
|
|
||||||
@cmd("refreshdb", flag="m", pm=True)
|
@command("refreshdb", flag="m", pm=True)
|
||||||
def refreshdb(cli, nick, chan, rest):
|
def refreshdb(var, wrapper, message):
|
||||||
"""Updates our tracking vars to the current db state."""
|
"""Updates our tracking vars to the current db state."""
|
||||||
db.expire_stasis()
|
db.expire_stasis()
|
||||||
db.init_vars()
|
db.init_vars()
|
||||||
expire_tempbans()
|
expire_tempbans()
|
||||||
reply(cli, nick, chan, "Done.")
|
wrapper.reply("Done.")
|
||||||
|
|
||||||
@command("fdie", "fbye", flag="D", pm=True)
|
@command("fdie", "fbye", flag="D", pm=True)
|
||||||
def forced_exit(var, wrapper, message):
|
def forced_exit(var, wrapper, message):
|
||||||
@ -476,12 +476,11 @@ def restart_program(var, wrapper, message):
|
|||||||
# handler now, but I'm keeping it for now just in case.
|
# handler now, but I'm keeping it for now just in case.
|
||||||
var.RESTARTING = True
|
var.RESTARTING = True
|
||||||
|
|
||||||
@cmd("ping", pm=True)
|
@command("ping", pm=True)
|
||||||
def pinger(cli, nick, chan, rest):
|
def pinger(var, wrapper, message):
|
||||||
"""Check if you or the bot is still connected."""
|
"""Check if you or the bot is still connected."""
|
||||||
reply(cli, nick, chan, random.choice(messages["ping"]).format(
|
wrapper.reply(random.choice(messages["ping"]).format(
|
||||||
nick=nick,
|
nick=wrapper.source, bot_nick=users.Bot,
|
||||||
bot_nick=botconfig.NICK,
|
|
||||||
cmd_char=botconfig.CMD_CHAR,
|
cmd_char=botconfig.CMD_CHAR,
|
||||||
goat_action=random.choice(messages["goat_actions"])))
|
goat_action=random.choice(messages["goat_actions"])))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user