mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Status: Add network command
This command is same as server, except that it will return the network, not the server the bot is on.
This commit is contained in:
parent
123c176637
commit
8e4090ff96
@ -223,6 +223,15 @@ class Status(callbacks.Plugin):
|
|||||||
irc.reply(irc.server)
|
irc.reply(irc.server)
|
||||||
server = wrap(server)
|
server = wrap(server)
|
||||||
|
|
||||||
|
@internationalizeDocstring
|
||||||
|
def network(self, irc, msg, args):
|
||||||
|
"""takes no arguments
|
||||||
|
|
||||||
|
Returns the network the bot is on.
|
||||||
|
"""
|
||||||
|
irc.reply(irc.network)
|
||||||
|
network = wrap(network)
|
||||||
|
|
||||||
|
|
||||||
Class = Status
|
Class = Status
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user