X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;ds=sidebyside;f=sid%2Fping.py;h=9fbab84a5cb19be9b5bcffbe81338fd2d86816f0;hb=685ca532c5f30b41da003878cbfca8183b4965b7;hp=827ddb634267e8dadc040f98390fa6660e759f1c;hpb=e518fc7f4c42f6e911d85ce8f662b3d21b6da757;p=sid.git
diff --git a/sid/ping.py b/sid/ping.py
index 827ddb6..9fbab84 100644
--- a/sid/ping.py
+++ b/sid/ping.py
@@ -23,15 +23,13 @@ class Ping(Plugin):
Plugin.__init__(self, bot)
@botcmd
- def ping(self, message, args):
+ def ping(self, rcv, args):
"""ping's answering a pong showing the bot is alive.
!ping : You'll get back "pong"!
"""
- msg = {
- 'mhtml':'!pong'.format(self),
- 'mbody':'!pong',
- }
- self.send(msg)
+ msg = {'mhtml':'!pong'.format(self),
+ 'mbody':'!pong',}
+ self.reply(rcv, msg)
# VIM MODLINE
# vim: ai ts=4 sw=4 sts=4 expandtab