class documentation
class Plugin(chatMod.chatMod): (source)
Undocumented
Method | __init__ |
Undocumented |
Method | command |
a command message received |
Method | connection |
made connection to server |
Method | get |
Undocumented |
Method | joined |
we have joined a channel |
Method | reload |
called to reload the settings of the module |
Method | respond |
respond to a command, substituting USER by the actual user and OTHER by the given options |
Method | start |
called to start the work of the module put your initialization stuff in here insteadof __init__ |
Instance Variable | bot |
Undocumented |
Instance Variable | channels |
Undocumented |
Instance Variable | commands |
Undocumented |
Instance Variable | mtime |
Undocumented |
Inherited from chatMod
:
Method | action |
action (/me) received |
Method | auth |
check the authorisation of the user |
Method | connection |
lost 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 | send |
Undocumented |
Method | signed |
successfully signed on |
Method | stop |
called, when the bot is stopped, or the module is reloaded |
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 |
respond to a command, substituting USER by the actual user and OTHER by the given options
>>> c=Plugin(None) >>> c.commands={} #just for the example to work >>> c.commands['general']={"test": ["USER wanted a test"], >>> "test_": ["USER wanted to show OTHER how it works"]} >>> c.commands['network']={} >>> #example begins here: >>> c.respond("", "testuser", "test", "") 'testuser wanted a test' >>> c.respond("", "testuser", "test", "you") 'testuser wanted to show you how it works'
overrides
otfbot.lib.chatMod.chatMod.start
called to start the work of the module put your initialization stuff in here insteadof __init__