mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-27 13:34:28 +00:00
o8kjkj
This commit is contained in:
parent
f2d51e7276
commit
700f32d345
2 changed files with 3 additions and 2 deletions
2
db.py
2
db.py
|
@ -957,7 +957,7 @@ class Halloween(Base):
|
||||||
started = False
|
started = False
|
||||||
for h in halloweens:
|
for h in halloweens:
|
||||||
for i in range(7):
|
for i in range(7):
|
||||||
if h.first_trigger:
|
if h.first_trigger is not None:
|
||||||
started = True
|
started = True
|
||||||
if h[i+1]:
|
if h[i+1]:
|
||||||
completed[i] = True
|
completed[i] = True
|
||||||
|
|
|
@ -525,7 +525,8 @@ class RoyalDiscordBot(discord.Client):
|
||||||
# EASTER EGG, REMOVE LATER
|
# EASTER EGG, REMOVE LATER
|
||||||
if "ghostbusters" in now_playing.plain_text().lower():
|
if "ghostbusters" in now_playing.plain_text().lower():
|
||||||
halloween = await loop.run_in_executor(executor, session.query(db.Halloween)
|
halloween = await loop.run_in_executor(executor, session.query(db.Halloween)
|
||||||
.filter_by(royal=enqueuer.royal).one_or_none)
|
.filter_by(royal=enqueuer.royal)
|
||||||
|
.one_or_none)
|
||||||
halloween[5] = datetime.datetime.now()
|
halloween[5] = datetime.datetime.now()
|
||||||
# END
|
# END
|
||||||
await loop.run_in_executor(executor, session.commit)
|
await loop.run_in_executor(executor, session.commit)
|
||||||
|
|
Loading…
Reference in a new issue