Page 1 of 1

Discord Bot for Notifications

Posted: Sun Jun 28, 2020 12:31 am
by Skype
I created a discord bot to provide notifications for in-game press and new turn alerts. Our group is wrapping up a game after using it and it worked pretty well for a classic variant game that was 1 day/turn. If you're interested in trying it out you can add it to your server here: https://github.com/Jerusus/discordwebdiplomacy

The bot sets up press message notifications by storing your login cookies, so if you're worried about that you can fork the repo and host the bot yourself with AWS dynamodb. Alternatively you can use only the server channel features which tell you about new turns and not the press notifications.

Re: Discord Bot for Notifications

Posted: Tue Jun 30, 2020 3:23 pm
by swordsman3003
Hey I am trying to get this to work on my Discord server, but I'm unfamiliar with how Bots work. I have the bot on my server. How do I subscribe it to a match?

Re: Discord Bot for Notifications

Posted: Tue Jun 30, 2020 3:33 pm
by Squigs44
From their documentation it looks like you use the command set to hook a channel up to a specific game. So:

d.set [gameID]

It looks like you have to configure the bot first, not sure if you have done that. You can use d.help to get available commands.

Re: Discord Bot for Notifications

Posted: Tue Jun 30, 2020 8:05 pm
by swordsman3003
Man maybe I'm running into the limits of my tech skills, but like what do you mean by "using" d.help? I tried sending "d.help" as a message to the bot after getting the bot to appear on my server, but nothing happens.

Re: Discord Bot for Notifications

Posted: Tue Jun 30, 2020 8:26 pm
by Squigs44
swordsman3003 wrote:
Tue Jun 30, 2020 8:05 pm
Man maybe I'm running into the limits of my tech skills, but like what do you mean by "using" d.help? I tried sending "d.help" as a message to the bot after getting the bot to appear on my server, but nothing happens.
Well then you either didn't set the bot up correctly or its broken. I couldn't tell you which without more info

Re: Discord Bot for Notifications

Posted: Wed Jul 01, 2020 2:13 pm
by swordsman3003
Okay I got the bot going today without doing anything different. I'm not sure what changed.

Now I have the problem that it's giving like a notification every 10 minutes for the same game, it's going nuts!! haha

Re: Discord Bot for Notifications

Posted: Wed Jul 01, 2020 2:36 pm
by BunnyGo
swordsman3003 wrote:
Wed Jul 01, 2020 2:13 pm
Okay I got the bot going today without doing anything different. I'm not sure what changed.

Now I have the problem that it's giving like a notification every 10 minutes for the same game, it's going nuts!! haha
It saw you were thinking it wouldn’t do anything. So it’s making up for lost time.

Re: Discord Bot for Notifications

Posted: Thu Jul 02, 2020 1:29 am
by Skype
swordsman3003 wrote:
Wed Jul 01, 2020 2:13 pm
Okay I got the bot going today without doing anything different. I'm not sure what changed.

Now I have the problem that it's giving like a notification every 10 minutes for the same game, it's going nuts!! haha
Hey thanks for checking out my bot! I'm still doing active development so maybe that's why you were noticing some odd behaviors. But I'm happy to help troubleshoot any issues you might have with it. Feel free to message me on Discord, my ID is Jerusus#0019.

Re: Discord Bot for Notifications

Posted: Thu Jul 02, 2020 1:33 am
by Skype
And for those that don't know already, there's an official webDip Discord server: https://discord.gg/f2ram4w

Re: Discord Bot for Notifications

Posted: Fri Oct 15, 2021 10:15 am
by Ducken
Hello!
Bot works on vdiplomacy but not on webdiplomacy
Is there a way to change this?

Re: Discord Bot for Notifications

Posted: Tue May 03, 2022 5:13 pm
by kestasjk
Very neat, I'll definitely look into this and whether we could add some official support

Re: Discord Bot for Notifications

Posted: Thu Feb 02, 2023 11:55 am
by aphex
Hi,
having the same issues. I've added the bot wiht the provided link from the github site:
https://discordapp.com/oauth2/authorize ... missions=0

I cannot see it's commands anywhere. When i go server settings and "Integrations"/"Bots" and select "Manage" for the bot, it states "This application has no commands"

Re: Discord Bot for Notifications

Posted: Thu Feb 02, 2023 12:05 pm
by captainmeme
Discord has updated its bot policy to only allow slash commands iirc, which means a lot of older bots have broken. This is probably the same, unfortunately.

Re: Discord Bot for Notifications

Posted: Sat Feb 04, 2023 2:44 am
by kestasjk
captainmeme wrote:
Thu Feb 02, 2023 12:05 pm
Discord has updated its bot policy to only allow slash commands iirc, which means a lot of older bots have broken. This is probably the same, unfortunately.
Damn .. note to self, don't write anything for the Discord platform :|