From 7470efc461b8bce05a07c4d1f7fac24d44822bfa Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 26 Sep 2015 10:15:07 -0700 Subject: [PATCH] commands: add an echo command --- plugins/commands.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/commands.py b/plugins/commands.py index 1fff0ec..1ae0cc6 100644 --- a/plugins/commands.py +++ b/plugins/commands.py @@ -196,3 +196,10 @@ def version(irc, source, args): Returns the version of the currently running PyLink instance.""" irc.msg(irc.called_by, "PyLink version \x02%s\x02, released under the Mozilla Public License version 2.0." % world.version) irc.msg(irc.called_by, "The source of this program is available at \x02%s\x02." % world.source) + +@utils.add_cmd +def echo(irc, source, args): + """ + + Echoes the text given.""" + irc.msg(irc.called_by, ' '.join(args))