Updated tildebot, updated twine stuff, backup scores and topics files

This commit is contained in:
RussellChamp committed 2015-02-06 19:35:22 +00:00
1 parent f24567c3b9
commit 90c4270ebf
10 files changed
+98 -86

No files matched your search

View File
Whitespace-only changes.
+2 -2
View File
@@ -66,11 +66,11 @@ def get_prize(user):
return [0, user + " is a meanie and gets no tildes! (Jackpot is now " + str(new_jackpot) + " tildes)"]
else: #hit jackpot!
jackpotfile.write(str(JACKPOT_MIN))
return [jackpot, user + " hit the jackpot and got " + p.number_to_words(jackpot) + " tildes!"]
return [jackpot, user + " hit the jackpot and won **" + p.number_to_words(jackpot) + " tildes!**"]
def show_jackpot(channel):
with open(JACKPOT_FILE, "r") as jackpotfile:
jackpot = int(jackpotfile.readlines().strip("\n"))
jackpot = int(jackpotfile.readline().strip("\n"))
ircsock.send("PRiVMSG " + channel + " :The jackpot is currently " + p.number_to_words(jackpot) + " tildes!\n")
def give_tilde(channel, user, time):
+11 -12
View File
@@ -1,21 +1,20 @@
krowbar&^%52&^%1422996899
karlen&^%53&^%1422996579
endorphant&^%115&^%1422996920
krowbar&^%79&^%1423251140
karlen&^%104&^%1423228714
endorphant&^%158&^%1423249581
jumblesale&^%20&^%1422027769
marcus&^%19&^%1422997619
papa&^%46&^%1422965349
marcus&^%30&^%1423250397
papa&^%48&^%1423148291
epicmorphism&^%5&^%1421937744
audy&^%44&^%1422996599
audy&^%46&^%1423232762
kc&^%18&^%1422326056
vilmibm&^%4&^%1422991123
vilmibm&^%9&^%1423247508
cmr&^%18&^%1422919247
imt&^%183&^%1422995649
cndorphant&^%193&^%1422995649
imt&^%296&^%1423251253
cndorphant&^%338&^%1423251253
rain&^%17&^%1422310975
sl2c&^%51&^%1422993399
leni&^%2&^%1421978450
sl2c&^%69&^%1423227648
selfsame&^%1&^%1422230012
bear&^%85&^%1422940626
bear&^%91&^%1423203340
coaxial&^%8&^%1422325983
joe&^%8&^%1422325983
hardmath123&^%4&^%1422325983
+1 -1
View File
@@ -55,7 +55,7 @@ def get_topic(channel, user, time):
scores[idx] = data[0] + "&^%" + str(userscore) + "&^%" + data[2] + "\n"
scorefile.writelines(scores)
if(not found):
scorefile.write(user + "&^%1&^%0")
scorefile.write(user + "&^%1&^%0\n")
with open("topics_" + channel + ".txt", "r") as topics:
+1
View File
@@ -1 +1,2 @@
1422907756&^%krowbar&^%tildebot's score file got wiped but mostly restord. Sorry!
1423077842&^%krowbar&^%tildebot now has a jackpot that increases for each non-payout. every request has a chance to hit jackpot!
+2
View File
@@ -56,3 +56,5 @@
1422296037&^%krowbar&^%Do you like store-bought things or handmade things? Why?
1422330863&^%vilmibm&^%hi! please try to keep bot chatter to #bots. Also, check out new channels: #poetry, #music, #coding
1422933066&^%vilmibm&^%html + feels
1423001317&^%vilmibm&^%red as blood https://twitter.com/shelbyfero/status/561976412748255234
1423176402&^%vilmibm&^%welcome to tilde.town irc | check out subchannels #bots #music #poetry #coding
+9 -2
View File
@@ -1,5 +1,12 @@
krowbar&^%21&^%24
krowbar&^%21&^%25
um&^%11&^%8
kc&^%0&^%22
marcus&^%4&^%1
khoi&^%1&^%0karlen&^%0&^%1karlen&^%0&^%1jumblesale&^%1&^%0karlen&^%0&^%1karlen&^%0&^%1karlen&^%0&^%1dan&^%1&^%0datagrok&^%0&^%1vilmibm&^%0&^%1papa&^%1&^%0vilmibm&^%1&^%0vilmibm&^%0&^%1jumblesale&^%1&^%0selfsame&^%1&^%0karlen&^%0&^%1jumblesale&^%0&^%1karlen&^%0&^%1vilmibm&^%0&^%1vilmibm&^%0&^%1vilmibm&^%0&^%1jumblesale&^%1&^%0vilmibm&^%0&^%1
khoi&^%1&^%0
karlen&^%0&^%7
jumblesale&^%3&^%2
dan&^%1&^%0
datagrok&^%0&^%1
papa&^%1&^%0
vilmibm&^%1&^%8
selfsame&^%1&^%0