Skip to content

Instantly share code, notes, and snippets.

@miawgogo
Created February 24, 2016 22:53
Show Gist options
  • Save miawgogo/917751f085ace8d44bf1 to your computer and use it in GitHub Desktop.
Save miawgogo/917751f085ace8d44bf1 to your computer and use it in GitHub Desktop.
def say(oldmsg):
newlines = ["\r", "\n"]
for char in newlines:
msg += oldmsg.split(char)
for text in msg:
count +=1
s.send(bytes("PRIVMSG %s :%s\r\n" % (CHANNEL, msg), "UTF-8"))
if count > 10:
break
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment