Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def topic(self, chan, msg):
- self.irc.send(bytes("TOPIC " + chan + " " + msg + "\r\n","UTF-8"))
- if "PRIVMSG" in text and channel in text and "m[at]" in text:
- with open ("fuckyoumat.txt","r") as myFile:
- fact = random.choice(list(myFile))
- irc.topic(channel, fact)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement