Update dependencies and add timed job

This commit is contained in:
Aadi Desai 2021-12-02 01:27:46 +00:00
parent 411fe4d505
commit 87f3086c71
No known key found for this signature in database
GPG key ID: CFFFE425830EF4D9
2 changed files with 14 additions and 0 deletions

7
app.py
View file

@ -2,6 +2,7 @@ import discord
import re import re
import yaml import yaml
import random import random
import aiocron
# from discord.ext import commands # from discord.ext import commands
@ -88,6 +89,12 @@ async def on_message(message):
) )
@aiocron.crontab("0 0 * * *") # Runs every day at midnight
async def steal_first_message():
channel = bot.get_channel(249891637008793600)
await channel.send("<@295575162869383169> Not this time :)")
with open("secrets.yaml") as stream: with open("secrets.yaml") as stream:
try: try:
secrets = yaml.safe_load(stream) secrets = yaml.safe_load(stream)

View file

@ -1,3 +1,4 @@
aiocron==1.8
aiohttp==3.7.4.post0 aiohttp==3.7.4.post0
async-timeout==3.0.1 async-timeout==3.0.1
attrs==21.2.0 attrs==21.2.0
@ -5,6 +6,7 @@ black==21.10b0
chardet==4.0.0 chardet==4.0.0
click==8.0.3 click==8.0.3
colorama==0.4.4 colorama==0.4.4
croniter==1.0.15
discord==1.7.3 discord==1.7.3
discord.py==1.7.3 discord.py==1.7.3
idna==3.3 idna==3.3
@ -12,8 +14,13 @@ multidict==5.2.0
mypy-extensions==0.4.3 mypy-extensions==0.4.3
pathspec==0.9.0 pathspec==0.9.0
platformdirs==2.4.0 platformdirs==2.4.0
python-dateutil==2.8.2
pytz-deprecation-shim==0.1.0.post0
PyYAML==6.0 PyYAML==6.0
regex==2021.11.2 regex==2021.11.2
six==1.16.0
tomli==1.2.2 tomli==1.2.2
typing-extensions==3.10.0.2 typing-extensions==3.10.0.2
tzdata==2021.5
tzlocal==4.1
yarl==1.7.2 yarl==1.7.2