Discord Notification When Map Is Hosted

Level 37
Joined
Aug 6, 2015
Messages
785
My bot stopped working. and when i click the link it doesn t send me where the bot used to be installed from. help!!
If you are ussing Triggs - it no longer works afaik.

Use this one
Hi all!

Since Triggs Bot has been dead for at least a week now, I made my own bot that does the same thing. You can install it to your Discord server using this link: Discord - Group Chat That’s All Fun & Games

This bot was actually originally intended to only be for notifying for games hosted on WC3Connect (EntConnect), a VPN-like service for Warcraft 3. I retro-fitted it to work for Battle.Net games as well, after Triggs Bot died, so currently it will notify for both WC3Connect and Battle.Net games. If there's enough demand, I can add in a filter so that you can choose to only be notified about Battle.Net games. (Or vice versa)

I think the bot should be pretty easy to use, but hit me up here or on Discord if you have problems with it. My Discord username is Skater901.

Also, if you're curious, you can find the source code for the bot here: GitHub - Skater901/warcraft3-notification-bot: A bot for notifying when a Warcraft 3 game has been hosted on Battle.Net, WC3Connect, or other sources. It's even got instructions so that, in theory, you could run the application yourself, as long as you have a database for it to connect to, and a Discord bot application for it to use. Contributions to the source code are welcome!

EDIT: It's currently not working, because it relies on using the API provided by https://wc3stats.com/. If their live games list stops updating, my bot stops working.
 
Level 4
Joined
Sep 4, 2024
Messages
14
Hi all! New feature added to the bot: support for Mastodon/Pleroma!

If you don't know what Mastodon/Pleroma are... I don't really either.:grin: It's basically like Twitter, except people can host their own servers, and if you're on one server, you can talk to people on other servers. Basically the way email works; just cause you have a Gmail account, doesn't mean you can't send emails to anyone except other Gmail users. (EDIT: Apparently Mastodon/Pleroma doesn't always work through browsers, and there's dedicated applications that are clients for using it.)

I think the way it works is that you make a post tagging [email protected], give it a hash tag, and a regex pattern. Then it'll make a post for every game hosted whose map matches the regex pattern, and the post will be tagged with the hashtag. So then I think you can follow that hashtag to see the posts. If you want more info, contact [email protected], since he's the one who wrote the code.

In other news, there's a feature request for the bot: Improvement Idea - Tag Roles · Issue #1 · Skater901/warcraft3-notification-bot The ability to specify a role to be tagged when a game is hosted. I am (slowly) working on this, and I also want to add a healthcheck command that people can use when the bot seems to be not working, so that they can identify what the problem is, and whether it's something I can fix or not.

Finally, I've noticed a few weird errors with the bot, so please reach out to me if you're having problems. I recently found out that you have to send me a friend request before you can message me on Discord, which is annoying, so I'll make sure to accept friend requests from anybody. Or, alternatively, raise an issue on the GitHub project, and I'll have a look at that.

The two main issues I've noticed are:
1. Some kind of permissions error when trying to post games to Discord. This was with one specific map pattern... I think it was something-fight, and the games being hosted were always Korean games (based on the game title). I haven't seen it recently, and I plan to ask other Discord developers for help with that one, but please let me know if games aren't showing up for you.
2. A timeout trying to register a new map notification. This is a very recent error, and may be caused by bad data in the database. Again, if it keeps happening, please let me know. I do plan to add some metrics and stuff to my bot to help me diagnose errors.

Bonus issue: someone has registered a Discord webhook URL as a map regex pattern. That's not going to work. :xxd: So you might want to try that one again!

EDIT: Forgot to add, if you want any other platforms supported, let me know, and if it seems fun, I'll do it. For example, if you want to get Steam messages, or Facebook messages, or Twitter/X tweets, or BlueSky tweets, or uh... anything else, raise a ticket and I'll have a look at it.
 
Last edited:
Level 2
Joined
Apr 19, 2022
Messages
4
Тriggs RIP
Game Watcher RIP
:(
 

Attachments

  • IMG_7604.png
    IMG_7604.png
    1.1 MB · Views: 39
  • IMG_7605.png
    IMG_7605.png
    378.2 KB · Views: 37
Level 4
Joined
Sep 4, 2024
Messages
14
Can somebody fix the bot :( Last notification was on 22.12 and sending commands to Warcraft 3 Game Watcher says "application does not respond".
The bot goes down sometimes, unfortunately. I usually notice within a few days and get it back up. That said, the guy who runs the server that I use to host the bot is going on vacation in a few days, and he'll be gone for two months. So hopefully nothing goes too wrong with his server while he's gone, because I won't be able to fix it. :grin: Also you can always add me on Discord and tell me if the bot is dead. There's a link to my Discord profile in the About command.

In other news, I've finally finished that feature suggestion for the bot and deployed it, so you can now specify a Discord role to be tagged every time a game is hosted. Give it a razz!
 
Level 4
Joined
Sep 4, 2024
Messages
14
Hey, really like the bot, good job on it!

Could you add support to add roles for each map? (For example: !notifychannel Legion TD @LegionTD).

On my server there are roles for the most played maps and channels for map genres. I would like if you could set a role for each map instead of channel, because multiple different maps of the same genre are posted in a map genre channel, but I want people only to be notified of certain maps that they chosen the specific map role. It would be unreliable if there would be 50+ channels for each map, so instead there is map genre channels and roles for each map which can be grabbed with a "react for role" system that is already setup, that's why I ask for this. Hope my explanation was understandable, english is not the best.

Thanks!
Yo, I don't know if this will send you a notification (I hope it will), but this feature exists in my bot! ...sort of. It's only 1 role per channel, not 1 role per map, like you wanted. But you can only have 1 notification per channel anyway, so I think it makes sense for how the bot works right now.
 
Level 11
Joined
Mar 22, 2021
Messages
131
Yo, I don't know if this will send you a notification (I hope it will), but this feature exists in my bot! ...sort of. It's only 1 role per channel, not 1 role per map, like you wanted. But you can only have 1 notification per channel anyway, so I think it makes sense for how the bot works right now.

Hey, I'm trying to use your bot, but the I feel the instructions are a bit unclear since I can't get it to notify me.
(WC3 stats is currently working properly and showing my game)

When It's time to put the map name on the command, what exactly am I supposed to put?
I didn't understand how regex works actually

Could you tell me what the proper command input would be?
File name is ...(11) FK Escape 2.10.w3x
And map title is Freddy Krueger Escape 2.10

I already tried with: Freddy_Krueger_Escape - ^Freddy_Krueger_Escape - ^Freddy Krueger Escape - ^FK_Escape

And none worked yet
 
Level 4
Joined
Sep 4, 2024
Messages
14
Hey, I'm trying to use your bot, but the I feel the instructions are a bit unclear since I can't get it to notify me.
(WC3 stats is currently working properly and showing my game)

When It's time to put the map name on the command, what exactly am I supposed to put?
I didn't understand how regex works actually

Could you tell me what the proper command input would be?
File name is ...(11) FK Escape 2.10.w3x
And map title is Freddy Krueger Escape 2.10

I already tried with: Freddy_Krueger_Escape - ^Freddy_Krueger_Escape - ^Freddy Krueger Escape - ^FK_Escape

And none worked yet
You have to put the map name that shows up in Warcraft 3, I think. (WC3Stats is down right now so I can't confirm it) I'm pretty sure WC3Stats reports the map name the same as what Warcraft 3 shows.

For the regex pattern, it can literally just be as simple as the name of the map. So if, when you host your map in Warcraft 3, the map name is "Freddy Krueger Escape 2.10", then your pattern can just be "Freddy Krueger Escape", and it'll work. If you want to make it case-insensitive, so that it'll also match "freddy krueger escape", you can put (?i) at the start of the pattern. (The bot is written in Java, so it uses Java's Regex syntax)

I'll try to confirm this stuff and update the instructions on the bot. I might not publish it for a while, though, cause I'm in the middle of a big feature overhaul for the bot. :xxd:
 
Level 11
Joined
Mar 22, 2021
Messages
131
You have to put the map name that shows up in Warcraft 3, I think. (WC3Stats is down right now so I can't confirm it) I'm pretty sure WC3Stats reports the map name the same as what Warcraft 3 shows.

For the regex pattern, it can literally just be as simple as the name of the map. So if, when you host your map in Warcraft 3, the map name is "Freddy Krueger Escape 2.10", then your pattern can just be "Freddy Krueger Escape", and it'll work. If you want to make it case-insensitive, so that it'll also match "freddy krueger escape", you can put (?i) at the start of the pattern. (The bot is written in Java, so it uses Java's Regex syntax)

I'll try to confirm this stuff and update the instructions on the bot. I might not publish it for a while, though, cause I'm in the middle of a big feature overhaul for the bot. :xxd:

Thanks for the quick response, I was just asking on their discord to see if it was just me that couldn't see the game list.
Do you have a discord server for the bot? That would be useful to give feedback and report bugs

As for the actual command, what's with the " ^ " Do i have to put that too or just the name is fine?
 
Level 4
Joined
Sep 4, 2024
Messages
14
Thanks for the quick response, I was just asking on their discord to see if it was just me that couldn't see the game list.
Do you have a discord server for the bot? That would be useful to give feedback and report bugs

As for the actual command, what's with the " ^ " Do i have to put that too or just the name is fine?
I don't have a Discord server for the bot, no. I guess I could set one up if there's enough need.

Please view the help command for the bot. It includes a basic description of regex, including a link to a website where you can test your patterns. There's also plenty of resources online for learning regex.
 
Level 11
Joined
Mar 22, 2021
Messages
131
I don't have a Discord server for the bot, no. I guess I could set one up if there's enough need.

Please view the help command for the bot. It includes a basic description of regex, including a link to a website where you can test your patterns. There's also plenty of resources online for learning regex.

Well, to be honest I couldn't make yours work and ended up finding another one :/
You should make a DS to have a userbase to respond to
 
Level 4
Joined
Sep 4, 2024
Messages
14
Heads up for everyone that the bot is offline, and I know it's offline. I've been hosting it on a server run by somebody I know, but their server has been having problems the last few days and is basically offline. We're trying to get it resolved, and hopefully the bot might be back up and running later today, but no promises.
Well, to be honest I couldn't make yours work and ended up finding another one :/
You should make a DS to have a userbase to respond to
There's another bot?? Damn, if only I'd known, I wouldn't have had to make mine. You should link to the other bot, so that people have more options. Maybe their bot is better than mine, and everyone will want to use theirs.
 
Level 11
Joined
Mar 22, 2021
Messages
131
Heads up for everyone that the bot is offline, and I know it's offline. I've been hosting it on a server run by somebody I know, but their server has been having problems the last few days and is basically offline. We're trying to get it resolved, and hopefully the bot might be back up and running later today, but no promises.

There's another bot?? Damn, if only I'd known, I wouldn't have had to make mine. You should link to the other bot, so that people have more options. Maybe their bot is better than mine, and everyone will want to use theirs.

Well, the bot is this one: Discord - Group Chat That’s All Fun & Games
And it uses the wc3stats DS for support: ¡Únete al servidor de Discord wc3stats.com!
If wc3stats is offline it tracks the games from wc3 maps
 
Level 4
Joined
Sep 4, 2024
Messages
14
The server problems have turned out to be quite complicated, and can't easily be fixed. The server admin is on holiday, and will be back mid April.

In the mean time, I'm running the bot off my own personal computer. Unfortunately this means that I don't have any of the notifications that were set up, as all that data exists in the database on the server. The good news is when the server gets fixed, that data will still be there. It's not lost forever, just temporarily. 🙂 So if you wanna keep using my bot, set up your notifications again. Or you can try the other bot that was linked above; maybe it's more stable, reliable, and generally better than my bot. Who knows!
 
Level 28
Joined
Feb 2, 2006
Messages
1,621
The server problems have turned out to be quite complicated, and can't easily be fixed. The server admin is on holiday, and will be back mid April.

In the mean time, I'm running the bot off my own personal computer. Unfortunately this means that I don't have any of the notifications that were set up, as all that data exists in the database on the server. The good news is when the server gets fixed, that data will still be there. It's not lost forever, just temporarily. 🙂 So if you wanna keep using my bot, set up your notifications again. Or you can try the other bot that was linked above; maybe it's more stable, reliable, and generally better than my bot. Who knows!
Couldn't you ask to let it run on Hive since they have a server anyway?
 
Level 4
Joined
Sep 4, 2024
Messages
14
Couldn't you ask to let it run on Hive since they have a server anyway?
I'm sure the owners of Hive will be perfectly happy to grant a random stranger complete access to their servers, in order to run whatever random code he wants. How could that possibly go wrong? :xxd:

In all seriousness, I never considered this as an option because I assumed nobody would want to add to their hosting costs. idk how much the Hive owners are paying for the servers currently, and I don't know how much my bot would add to those costs, but if it increases their hosting costs at all, then I don't see why they would agree. What's in it for them?

Plus the other problem is what their actual server set up is. I've written my bot as a Java application that I can download to a server and run, but they might not have a server (or servers) that can run Java applications; they might just have a PHP server and a database server where they don't actually manage the server itself, just use the PHP and database, if that makes sense.

But hey, if the owners of Hive see this and do want to host my bot... let me know. 🙂
 
Level 4
Joined
Sep 4, 2024
Messages
14
Why not? They could also add links to Hive in the notifications, so you can download the latest version of the map from Hive if it is available. If Java is the issue I am sure it can be written in different languages.
Honestly I don't think Hive are interested in hosting it, and I have no idea who I should contact to find out if they even are interested in hosting it. If you know who to contact, feel free to contact them on my behalf, but I don't personally think it's worth it.

It could be re-written from Java to something else, but who's going to do that? Probably not me, unless it's a language I really want to learn.

The bot actually does have links to the map version, currently... it doesn't link to the latest version because that would be VERY complicated to do. But it has a link for the specific map that's being hosted, which links to the map on wc3maps.com.
 
Top