Skarkii / Discord-MusicBot

A Discord Music Bot written in Python. Main goal is to have a smooth experience with Youtube/Soundcloud/Spotify requests.
GNU General Public License v3.0
3 stars 4 forks source link

Implement version checking for new versions. #14

Closed Skarkii closed 1 month ago

Skarkii commented 1 month ago
import requests
response = requests.get("https://api.github.com/repos/skarkii/discord-musicbot/releases/latest")
print(response.json()["name"])

returns: v1.0

In config.ini add:

[DISCORD]
    [OWNER_ID] = INSERT_OWNER_DISCORD_ID_HERE
    [ALERT_ON_NEW_RELEASE] = True/False

Now an check for new versions can be implemented easily.