MCPcopy Create free account
hub / github.com/antirez/freakwan / __init__

Method __init__

networking.py:30–37  ·  view source on GitHub ↗
(self,nick,callback,host="irc.libera.chat",port=6667)

Source from the content-addressed store, hash-verified

28
29class 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):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected