mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-20 15:41:09 +01:00
Added server command.
This commit is contained in:
parent
14eff0fdf1
commit
b0559e3d75
@ -236,7 +236,7 @@ class Status(callbacks.Privmsg):
|
|||||||
irc.reply(msg, utils.commaAndify(commands))
|
irc.reply(msg, utils.commaAndify(commands))
|
||||||
|
|
||||||
def uptime(self, irc, msg, args):
|
def uptime(self, irc, msg, args):
|
||||||
"""takes no arguments.
|
"""takes no arguments
|
||||||
|
|
||||||
Returns the amount of time the bot has been running.
|
Returns the amount of time the bot has been running.
|
||||||
"""
|
"""
|
||||||
@ -244,6 +244,13 @@ class Status(callbacks.Privmsg):
|
|||||||
utils.timeElapsed(time.time() - world.startedAt)
|
utils.timeElapsed(time.time() - world.startedAt)
|
||||||
irc.reply(msg, response)
|
irc.reply(msg, response)
|
||||||
|
|
||||||
|
def server(self, irc, msg, args):
|
||||||
|
"""takes no arguments
|
||||||
|
|
||||||
|
Returns the server the bot is on.
|
||||||
|
"""
|
||||||
|
irc.reply(msg, irc.server)
|
||||||
|
|
||||||
|
|
||||||
Class = Status
|
Class = Status
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user