Created
February 24, 2016 22:53
-
-
Save miawgogo/917751f085ace8d44bf1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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