Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ElieTaillard committed Nov 20, 2023
1 parent f8f1f23 commit 46a492b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
DB_URI: ${{ secrets.DB_URI }}

- name: Display Logs
run: python3 -m exendlr psthcbot "READY"
run: python3 -m exendlr psthcbot "Bot prêt !"

- name: Cleanup unused images
run: docker image prune -f
3 changes: 1 addition & 2 deletions psthc_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ def __init__(self, *args, **kwargs):
# if len(feed.entries) > 0:
# self.last_entry_id = feed.entries[0].id

logging.info("Bot READY")

async def setup_hook(self):
logging.info("Création de la tâche en arrière-plan pour vérifier le flux RSS.")
self.bg_task = self.loop.create_task(self.check_rss())
logging.info("Bot prêt !")

async def on_ready(self):
logging.info(f"Utilisateur connecté : {self.user} (ID : {self.user.id})")
Expand Down

0 comments on commit 46a492b

Please sign in to comment.