X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Fping.py;h=eea657667eee0d83a5fde2730a1271f29e73c06a;hb=aedd6aa01b9f279a4ae5b10b31b66900ce84c07b;hp=9fbab84a5cb19be9b5bcffbe81338fd2d86816f0;hpb=8d02f7db31a8587f1cd9bb31bcdffd517f6c144e;p=sid.git diff --git a/sid/ping.py b/sid/ping.py index 9fbab84..eea6576 100644 --- a/sid/ping.py +++ b/sid/ping.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright (C) 2014 kaliko +# Copyright (C) 2014, 2020 kaliko # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -16,6 +16,7 @@ from .plugin import Plugin, botcmd + class Ping(Plugin): PongURL = 'http://upload.wikimedia.org/wikipedia/commons/f/f8/Pong.png' @@ -24,11 +25,12 @@ class Ping(Plugin): @botcmd def ping(self, rcv, args): - """ping's answering a pong showing the bot is alive. + """Answers a pong showing the bot is alive. + !ping : You'll get back "pong"! """ - msg = {'mhtml':'!pong'.format(self), - 'mbody':'!pong',} + msg = {'mhtml': '!pong'.format(self), + 'mbody': '!pong'} self.reply(rcv, msg) # VIM MODLINE