]> kaliko git repositories - sid.git/blobdiff - sid/ping.py
Improved help strings, add doc url
[sid.git] / sid / ping.py
index 96d92c79ced2ef3c21f077477590e4a847759cdb..eea657667eee0d83a5fde2730a1271f29e73c06a 100644 (file)
@@ -1,6 +1,6 @@
 # -*- coding: utf-8 -*-
 
-# Copyright (C) 2014 kaliko <kaliko@azylum.org>
+# Copyright (C) 2014, 2020 kaliko <kaliko@azylum.org>
 
 # 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':'!<a href="{0.PongURL}">pong</a>'.format(self),
-                'mbody':'!pong',
-                }
+        msg = {'mhtml': '!<a href="{0.PongURL}">pong</a>'.format(self),
+               'mbody': '!pong'}
         self.reply(rcv, msg)
 
 # VIM MODLINE