diff --git a/BirthdayBot/BackgroundWorker.vb b/BirthdayBot/BackgroundWorker.vb index 94ddb22..c1f2bec 100644 --- a/BirthdayBot/BackgroundWorker.vb +++ b/BirthdayBot/BackgroundWorker.vb @@ -277,11 +277,11 @@ Class BackgroundWorker Dim dtok = _bot._cfg.DBotsToken If dtok IsNot Nothing Then - Const dUrl As String = "https://bots.discord.pw/api/bots/{0}/stats" + Const dUrl As String = "https://discord.bots.gg/api/v1/bots/{0}/stats" Using client As New WebClient() Dim uri = New Uri(String.Format(dUrl, CType(_bot.DiscordClient.CurrentUser.Id, String))) - Dim data = "{ ""server_count"": " + CType(count, String) + " }" + Dim data = "{ ""guildCount"": " + CType(count, String) + " }" client.Headers(HttpRequestHeader.Authorization) = dtok client.Headers(HttpRequestHeader.ContentType) = "application/json" Try diff --git a/Readme.md b/Readme.md index 2b571f5..936e13e 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,8 @@ Recognize birthdays in your Discord community! -Invite: https://discordapp.com/oauth2/authorize?client_id=470673087671566366&scope=bot&permissions=268435456 +* Info: https://discord.bots.gg/bots/470673087671566366 +* Invite: https://discordapp.com/oauth2/authorize?client_id=470673087671566366&scope=bot&permissions=268435456 This bot will automatically add a role to users during their birthdays. If desired, it will also announce birthdays in a channel of your choosing. Time zones are supported per-server and per-user to ensure that birthdays and events are recognized at appropriate times. @@ -16,4 +17,4 @@ This bot will automatically add a role to users during their birthdays. If desir ## Other details * Birthday information is not shared between servers. If you are in multiple servers that this bot is in, you must register your birthday (including time zone) within each server. * This is in case one wishes to share their birthday only in certain communities. -* Problematic users? This bot supports blocking certain or all users from using commands. Server moderators are able to issue commands on a user's behalf. \ No newline at end of file +* Problematic users? This bot supports blocking certain or all users from using commands. Server moderators are able to issue commands on a user's behalf.