class documentation
class Plugin(chatMod.chatMod): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | add |
add a feed |
Method | command |
a command message received |
Method | connection |
lost connection to server |
Method | get |
calculate the new wait time |
Method | joined |
we have joined a channel |
Method | load |
Undocumented |
Method | load |
Undocumented |
Method | parse |
Undocumented |
Method | post |
Undocumented |
Method | post |
load News if needed and Post them to a channel |
Method | stop |
called, when the bot is stopped, or the module is reloaded |
Instance Variable | bot |
Undocumented |
Instance Variable | call |
Undocumented |
Instance Variable | end |
Undocumented |
Instance Variable | feed |
Undocumented |
Instance Variable | feed |
Undocumented |
Instance Variable | feedparser |
Undocumented |
Instance Variable | read |
Undocumented |
Inherited from chatMod
:
Method | action |
action (/me) received |
Method | auth |
check the authorisation of the user |
Method | connection |
made connection to server |
Method | ctcp |
called for ctcp queries |
Method | irc |
an IRC-Message, which is not handle by twisted was received |
Method | kicked |
someone kicked the bot |
Method | left |
we have left a channel |
Method | line |
Undocumented |
Method | mode |
mode changed |
Method | msg |
message received |
Method | noticed |
we got a notice |
Method | query |
a private message received |
Method | reload |
called to reload the settings of the module |
Method | send |
Undocumented |
Method | signed |
successfully signed on |
Method | start |
called to start the work of the module put your initialization stuff in here insteadof __init__ |
Method | topic |
a user changed the topic of a channel |
Method | user |
a user joined the channel |
Method | user |
Undocumented |
Method | user |
someone kicked someone else |
Method | user |
a user left the channel |
Method | user |
a user disconnect from the network |
Method | user |
a user changed the nick |
Method | your |
info about your host |
add a feed
Parameters | |
url | the url of the feed |
channel | Undocumented |
min | minimal time between updates |
max | maximum time between updates |
factor | the factor to increase update delay if no new news were found |
post | maximum new items to post on update |
calculate the new wait time
Parameters | |
cur | maximum wait time |
min | minimum wait time |
max | Undocumented |
factor | factor (>=1) to increase the delay if no news were found |
had | set to true, if new news were loaded |
def postNewsLoop(self, channel, url, curWait=5.0, minWait=1.0, maxWait=60.0, factor=1.5, feedPostMax=3):
(source)
¶
load News if needed and Post them to a channel
overrides
otfbot.lib.chatMod.chatMod.stop
called, when the bot is stopped, or the module is reloaded