(self,nick,callback,host="irc.libera.chat",port=6667)
| 28 | |
| 29 | class IRC: |
| 30 | def __init__(self,nick,callback,host="irc.libera.chat",port=6667): |
| 31 | self.host=host |
| 32 | self.port=port |
| 33 | self.nick = nick |
| 34 | self.channel="##Freakwan-"+nick |
| 35 | self.connected = False |
| 36 | self.active = False |
| 37 | self.callback = callback # Called when receiving messages |
| 38 | |
| 39 | # Connect to the IRC server. |
| 40 | def connect(self): |
nothing calls this directly
no outgoing calls
no test coverage detected