mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-25 19:44:13 +01:00
Added announce command.
This commit is contained in:
parent
c43947ce63
commit
c9655c6785
@ -196,6 +196,18 @@ class RSS(callbacks.Privmsg):
|
|||||||
delattr(self.__class__, name)
|
delattr(self.__class__, name)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
|
||||||
|
def announce(self, irc, msg, args):
|
||||||
|
"""[<channel>] <name|url> [<name|url> ...]
|
||||||
|
|
||||||
|
Sets the current list of announced feeds in the channel to the feeds
|
||||||
|
given. Valid feeds include the names of registered feeds as well as
|
||||||
|
URLs for a RSS feeds. <channel> is only necessary if the message isn't
|
||||||
|
sent in the channel itself.
|
||||||
|
"""
|
||||||
|
channel = privmsgs.getChannel(msg, args)
|
||||||
|
conf.supybot.plugins.RSS.announce.get(channel).setValue(args)
|
||||||
|
irc.replySuccess()
|
||||||
|
|
||||||
def rss(self, irc, msg, args):
|
def rss(self, irc, msg, args):
|
||||||
"""<url>
|
"""<url>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user