This commit is contained in:
Ben Harris committed 2018-10-09 02:50:10 -04:00
1 parent a8a5de36f2
commit 58753c7234
38 files changed
+4549 -2523

No files matched your search

+3 -2
View File
@@ -1,16 +1,17 @@
import random
def makeRainbow(word):
word = word or "RAINBOW"
output = ""
rb = ["5","7","8","3","12","13","6"]
rb = ["5", "7", "8", "3", "12", "13", "6"]
bg = "01"
idx = random.randrange(0, len(rb))
for l in word:
if l == " ":
output += ' '
output += " "
else:
output += "\x03" + rb[idx % len(rb)] + "," + bg + l
idx += 1