mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 15:44:06 +01:00
commands: add an echo command
This commit is contained in:
parent
7d919e643a
commit
7470efc461
@ -196,3 +196,10 @@ def version(irc, source, args):
|
|||||||
Returns the version of the currently running PyLink instance."""
|
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, "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)
|
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):
|
||||||
|
"""<text>
|
||||||
|
|
||||||
|
Echoes the text given."""
|
||||||
|
irc.msg(irc.called_by, ' '.join(args))
|
||||||
|
Loading…
Reference in New Issue
Block a user