Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. def topic(self, chan, msg):
  2. self.irc.send(bytes("TOPIC " + chan + " " + msg + "\r\n","UTF-8"))
  3.  
  4.  
  5. if "PRIVMSG" in text and channel in text and "m[at]" in text:
  6. with open ("fuckyoumat.txt","r") as myFile:
  7. fact = random.choice(list(myFile))
  8. irc.topic(channel, fact)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement