mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-30 15:04:18 +00:00
re-enable Overwatch, add 1 easter egg
This commit is contained in:
parent
1fb7a35b6d
commit
d8e71d2693
2 changed files with 17 additions and 16 deletions
|
@ -614,7 +614,8 @@ song_special_messages = {
|
||||||
"linkin park": ":arrow_forward: Crawling in my {song}!",
|
"linkin park": ":arrow_forward: Crawling in my {song}!",
|
||||||
"magicite": "⚠️ Warning: {song} contiene numerosi bug.",
|
"magicite": "⚠️ Warning: {song} contiene numerosi bug.",
|
||||||
"papers please": ":arrow_forward: Glory to Arstotzka! {song}!",
|
"papers please": ":arrow_forward: Glory to Arstotzka! {song}!",
|
||||||
"we are number one": ":arrow_forward: Now paying respect to Robbie Rotten: {song}"
|
"we are number one": ":arrow_forward: Now paying respect to Robbie Rotten: {song}",
|
||||||
|
"jump up superstar": ":arrow_forward: Is {song} the Tengen Toppa Guren Lagann opening?"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
30
update.py
30
update.py
|
@ -88,21 +88,21 @@ try:
|
||||||
sleep_time = 1 - time.clock() + t
|
sleep_time = 1 - time.clock() + t
|
||||||
time.sleep(sleep_time if sleep_time > 0 else 0)
|
time.sleep(sleep_time if sleep_time > 0 else 0)
|
||||||
# Update Overwatch
|
# Update Overwatch
|
||||||
# print("OVERWATCH")
|
print("OVERWATCH")
|
||||||
# for user in session.query(db.Overwatch).all():
|
for user in session.query(db.Overwatch).all():
|
||||||
# t = time.clock()
|
t = time.clock()
|
||||||
# print(f"Updating {user.royal.username}", end="\t\t", flush=True)
|
print(f"Updating {user.royal.username}", end="\t\t", flush=True)
|
||||||
# try:
|
try:
|
||||||
# user.update()
|
user.update()
|
||||||
# except errors.RequestError:
|
except errors.RequestError:
|
||||||
# print("Request Error")
|
print("Request Error")
|
||||||
# except errors.NotFoundError:
|
except errors.NotFoundError:
|
||||||
# print("Not Found Error (?)")
|
print("Not Found Error (?)")
|
||||||
# else:
|
else:
|
||||||
# print("OK")
|
print("OK")
|
||||||
# finally:
|
finally:
|
||||||
# sleep_time = 1 - time.clock() + t
|
sleep_time = 1 - time.clock() + t
|
||||||
# time.sleep(sleep_time if sleep_time > 0 else 0)
|
time.sleep(sleep_time if sleep_time > 0 else 0)
|
||||||
print("Committing...\t\t")
|
print("Committing...\t\t")
|
||||||
session.commit()
|
session.commit()
|
||||||
print("OK")
|
print("OK")
|
||||||
|
|
Loading…
Reference in a new issue