[WIP] Unreal Tournament 2004 Server Query Discord Bot v2.5

Discussions about everything else
User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

[WIP] Unreal Tournament 2004 Server Query Discord Bot v2.5

Post by UT Sniper (SJA94) » Fri Jul 17, 2020 3:58 pm

I'm finally happy enough to release my ut2004 server query discord bot into the public :D

This discord bot can be used to query any Unreal Tournament 2004 server and displays their response in the current text channel, servers that don't have port + 1 open won't be able to be queried.

Download: https://github.com/scottadkin/Discord-U ... s/tag/v2.5

Github Repo: https://github.com/scottadkin/Discord-U ... rver-Query

Features:
- Query any UT2004 server with command .q <ip>:<port> to display server name, current gametype, map, player count, player information, and a clickable link to join the server.
- Ability to save a list of servers to a database file that then can be used for shorthand commands instead of the option above.
- Ability to display all servers added in the database in one response.
- Ability to display all active servers in the database(servers that have at least 1 player in them)
- Ability to display a clickable link to a server using .ip<serverId> command.
- Auto query option, you can set the bot up in a selected text channel to keep an auto updated list of detailed information about each server. It's recommended to set this in an empty/new text channel as the bot will delete previous messages to keep the channel tidy for easy viewing.

Youtube demo video: https://www.youtube.com/watch?v=y6GCW_1bLVg


Image
Image

Bot commands

User Commands
- `.servers` Displays basic server information for all the servers added to the database.
- `.active` Displays basic server information for all servers added that have players on it.
- `.q<serverId>` Displays the server's name, current gametype, map, and players.
- `.q <server ip>:<port>` Displays a server's name, current gametype, map, and players.
- `.ip<serverid>` Displays clickable link to the server.

Admin Commands
- `.allowchannel` Enables the bot to be used in the current channel.
- `.deletechannel` Disables the bot from being used in the current channel.
- `.allowrole <role name>` Enables users with the specified role to use admin commands.
- `.deleterole <role name>` Disables users with the specified role to use the admin commands.
- `.addserver <alias> <ip>:<port>` Adds the specified server to the database.
- `.deleteserver <serverid>` Deletes the server with the specified id.
- `.setauto` Sets the current channel as the auto query channel. This can also be used to reset the auto query making it post all new responses.
- `.stopauto` Disables auto query channel.
Last edited by UT Sniper (SJA94) on Sat Jan 02, 2021 10:03 pm, edited 8 times in total.

User avatar
[rev]rato.skt
Adept
Posts: 370
Joined: Mon Aug 16, 2010 1:09 pm

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot

Post by [rev]rato.skt » Sat Jul 18, 2020 2:40 am

:O nice man :DD
Brazilian Server:
Classic madruga.utbr.tk:7777
Duel x1.utbr.tk:6666
UT2004 2004.utbr.tk:5555

User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot v1.2

Post by UT Sniper (SJA94) » Sun Jul 19, 2020 12:01 pm

Version 1.1: XXXX
Fixed a bug regarding .q commands.

Now only the selected prefix can work with any command.

----- Edit -----------

Version 1.2: https://github.com/scottadkin/Discord-U ... s/tag/v1.2
Added join as spectator urls to .q and .ip commands.

Image

User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot v1.3

Post by UT Sniper (SJA94) » Thu Aug 06, 2020 1:50 pm

Fixed a memory leak, removed geo-ip, and country list to drop average ram usage to ~25mb from 115mb.

version 1.3: XXXXX

Improved get packet process and fixed default config.json timings.
Version 1.4: https://github.com/scottadkin/Discord-U ... s/tag/v1.4

User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot v2.0 Beta

Post by UT Sniper (SJA94) » Mon Aug 31, 2020 7:00 am

I rewrite the bot from scratch so it's more efficient and uses less resources, ready for testing here: https://github.com/scottadkin/Discord-U ... s/tag/v2.0 The previous version will still be available at github.

User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot v2.2 Beta

Post by UT Sniper (SJA94) » Thu Dec 31, 2020 6:12 pm

New release: https://github.com/scottadkin/Discord-U ... s/tag/v2.2

Release notes:
- .servers can now display an unlimited amount of servers instead of breaking when reaching MessageEmbed character limit.
- Updated package.json

User avatar
UT Sniper (SJA94)
Masterful
Posts: 695
Joined: Thu Jun 24, 2010 10:35 pm
Personal rank: noob programmer
Location: England

Re: [WIP] Unreal Tournament 2004 Server Query Discord Bot v2.5

Post by UT Sniper (SJA94) » Sat Jan 02, 2021 10:05 pm

New Release: https://github.com/scottadkin/Discord-U ... es/tag/2.5
- TAM gametype is now shown instead of xDeathMatch
- Enabled Discord Cache management to reduce RAM usage.
- Various minor bug fixes, and improvements.