mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-22 13:54:36 +00:00
Update Discord Bots API endpoint
This commit is contained in:
parent
bedcf8ad2b
commit
f184748356
2 changed files with 5 additions and 4 deletions
|
@ -277,11 +277,11 @@ Class BackgroundWorker
|
||||||
|
|
||||||
Dim dtok = _bot._cfg.DBotsToken
|
Dim dtok = _bot._cfg.DBotsToken
|
||||||
If dtok IsNot Nothing Then
|
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()
|
Using client As New WebClient()
|
||||||
Dim uri = New Uri(String.Format(dUrl, CType(_bot.DiscordClient.CurrentUser.Id, String)))
|
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.Authorization) = dtok
|
||||||
client.Headers(HttpRequestHeader.ContentType) = "application/json"
|
client.Headers(HttpRequestHeader.ContentType) = "application/json"
|
||||||
Try
|
Try
|
||||||
|
|
|
@ -2,7 +2,8 @@
|
||||||
|
|
||||||
Recognize birthdays in your Discord community!
|
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.
|
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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue