muffonlabs / mufbot-dc

Muffon discord bot
MIT License
3 stars 0 forks source link

Auto-update in real time using github webhooks #1

Open xyloflake opened 1 month ago

xyloflake commented 1 month ago

@gamersi

Problem with Real-time Webhook Integrated Autoupdate:

This implementation would rely solely on real-time webhooks, which may miss updates if mufbot is offline. If a release occurs during downtime, the webhook notification is lost, and the application will not receive it when restarted.

Proposed Solution

Implement a hybrid autoupdate mechanism combining:

  1. Initial Startup Version Check
  2. Real-time Webhook Notifications

Key Benefits

Implementation Details

[!IMPORTANT]

  • Store Update History:
    Maintain a log of update history for reference, allowing the application to track what updates were missed during downtime.

By adopting this hybrid approach, we can ensure our application stays current and functional, even when offline.