1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00

re-enable Overwatch, add 1 easter egg

This commit is contained in:
Steffo 2018-08-05 12:07:35 +02:00
parent 1fb7a35b6d
commit d8e71d2693
2 changed files with 17 additions and 16 deletions

View file

@ -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?"
} }

View file

@ -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")