mirror of
https://github.com/supleed2/gondilinabot-python.git
synced 2024-12-22 05:25:49 +00:00
Update dependencies and add timed job
This commit is contained in:
parent
411fe4d505
commit
87f3086c71
7
app.py
7
app.py
|
@ -2,6 +2,7 @@ import discord
|
|||
import re
|
||||
import yaml
|
||||
import random
|
||||
import aiocron
|
||||
|
||||
# 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:
|
||||
try:
|
||||
secrets = yaml.safe_load(stream)
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
aiocron==1.8
|
||||
aiohttp==3.7.4.post0
|
||||
async-timeout==3.0.1
|
||||
attrs==21.2.0
|
||||
|
@ -5,6 +6,7 @@ black==21.10b0
|
|||
chardet==4.0.0
|
||||
click==8.0.3
|
||||
colorama==0.4.4
|
||||
croniter==1.0.15
|
||||
discord==1.7.3
|
||||
discord.py==1.7.3
|
||||
idna==3.3
|
||||
|
@ -12,8 +14,13 @@ multidict==5.2.0
|
|||
mypy-extensions==0.4.3
|
||||
pathspec==0.9.0
|
||||
platformdirs==2.4.0
|
||||
python-dateutil==2.8.2
|
||||
pytz-deprecation-shim==0.1.0.post0
|
||||
PyYAML==6.0
|
||||
regex==2021.11.2
|
||||
six==1.16.0
|
||||
tomli==1.2.2
|
||||
typing-extensions==3.10.0.2
|
||||
tzdata==2021.5
|
||||
tzlocal==4.1
|
||||
yarl==1.7.2
|
||||
|
|
Loading…
Reference in a new issue