Last active
August 29, 2015 14:13
-
-
Save DarthJahus/a9adfb57ab142007137a to your computer and use it in GitHub Desktop.
This file contains 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
# soaking hue for ItsLuke Skywalker, by Jahus | |
# | |
# kek (the debug part) | |
soakAmount = 12000 | |
chan = "#chan" | |
Active_Users = {"#chan": ["u1", "u2", "u3", "u4", "u5"]} | |
max_users = 20 # can go up to 28 but... well... Freenode NICKLEN=16, mMSGLEN=459, 459/16=28.6875... 20 is so good. much secure. wow | |
# hue (the code) | |
for i in xrange(0, len(Active_Users[chan]), max_users): | |
# build the couples (nick, amount) | |
soak_message = [(("%s %s") % (nick, soakAmount)) for nick in Active_Users[chan][i:i+max_users]] | |
# send the command | |
conn.msg("Doger", "mtip %s" % ' '.join(soak_message)) | |
# | |
# h:u:e (the timestamp): 23:23 2015-01-07 GMT+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment