X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sid%2Fping.py;h=eea657667eee0d83a5fde2730a1271f29e73c06a;hb=aedd6aa01b9f279a4ae5b10b31b66900ce84c07b;hp=96d92c79ced2ef3c21f077477590e4a847759cdb;hpb=c42c7531be1c512846ab8795f331e676ab53f003;p=sid.git diff --git a/sid/ping.py b/sid/ping.py index 96d92c7..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,13 +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