Skip to content

Commit

Permalink
Bot can fetch issues from github and display them on discord. TODO: f…
Browse files Browse the repository at this point in the history
…inalize alerting age, code the bot to actually DO something with the issues.
  • Loading branch information
AxelLynch committed Apr 22, 2024
1 parent 3fb16fc commit aba9ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ async def setup_hook(self) -> None:
"src.roles",
"src.welcome",
"src.testing",
"src.issues",
)
for i, extension in enumerate(extensions):
try:
Expand Down
4 changes: 2 additions & 2 deletions src/issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def __init__(self, bot: MILBot):
self.bot = bot
self.get_old_issues.start()

#@run_on_weekday(calendar.MONDAY, 0, 0)
@tasks.loop(seconds=600)
@run_on_weekday(calendar.MONDAY, 0, 0)
#@tasks.loop(seconds=600)
async def get_old_issues(self):
await self.bot.wait_until_ready()
open_issues = await self.bot.github.get_software_issues()
Expand Down

0 comments on commit aba9ca4

Please sign in to comment.