From b0559e3d75804501b0d2fd65c5b053b07df03231 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Fri, 2 Jan 2004 21:36:45 +0000 Subject: [PATCH] Added server command. --- plugins/Status.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/plugins/Status.py b/plugins/Status.py index a5c0b4629..3573b3593 100644 --- a/plugins/Status.py +++ b/plugins/Status.py @@ -236,7 +236,7 @@ class Status(callbacks.Privmsg): irc.reply(msg, utils.commaAndify(commands)) def uptime(self, irc, msg, args): - """takes no arguments. + """takes no arguments Returns the amount of time the bot has been running. """ @@ -244,6 +244,13 @@ class Status(callbacks.Privmsg): utils.timeElapsed(time.time() - world.startedAt) 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