X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sid%2Fping.py;h=a0463ea03ee4b098b609f6f0986912b2c731cb92;hb=b32d7a8cb7b1bd5cd16e461d14ed94891b93014f;hp=9fbab84a5cb19be9b5bcffbe81338fd2d86816f0;hpb=8d02f7db31a8587f1cd9bb31bcdffd517f6c144e;p=sid.git diff --git a/sid/ping.py b/sid/ping.py index 9fbab84..a0463ea 100644 --- a/sid/ping.py +++ b/sid/ping.py @@ -1,21 +1,10 @@ # -*- coding: utf-8 -*- - -# Copyright (C) 2014 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 -# the Free Software Foundation, version 3 only. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# SPDX-FileCopyrightText: 2014, 2020 kaliko +# SPDX-License-Identifier: GPL-3.0-or-later from .plugin import Plugin, botcmd + class Ping(Plugin): PongURL = 'http://upload.wikimedia.org/wikipedia/commons/f/f8/Pong.png' @@ -24,11 +13,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