Zupa

ZBot - BE Rcon Discord Bot

33 posts in this topic

ZBot ( An experimental project. ) -> For any BattlEye rcon game supported!

 

Current version: 1.0.1

 

A Discord bot that can roam your Discord server and function as an RCON client for your BattlEye game servers. 

Screenshots at the bottom.

 

What can it do?

 

  • Print all chats in different discord text channels in their respective colours ( Side, Vehicle, Global, ... ). (Tip: Print sidechat in a channel that everyone can read !)
  • Execute RCON & Server commands to your arma server in the assigned Command channel.
  • Protect these commands with an appropriate Discord Role.
  • Reply to user commands when they type ingame. These replies can be printed ingame and in discord. ( eg: !admin -> Admins can be found on discord -> @Admin some asked for an admin ingame. )
  • Webpanel to configure your rcon-game servers.
  • List players, admins & bans trough rcon commands. ( All BattleEye commands supported ).
  • Now available: Schedule text commands for ingame/discord through the web panel.

 

How to add it to my server?

 

https://bot.devzupa.be/

 

Follow the flow of the site. It should be straightforward. Always remember to save a page if needed before navigating to another page!
Add the bot before or after you filled in all the info. ( The button on top ).

Always be sure the chosen roles and channel exist in your discord server! ( channel names are without the # )

 

Whenever you make changes in the config panel you need to reload the config of your server onto the bot. 
This can be easily done by just typing in a channel:

!zbot reload

This commands also refreshes your rcon instance if it would have stopped for some reason.

 

All rcon commands can be viewed in the assigned 'command' discord channel. List these commands by typing

!rcon

All commands are prefixed with that aswell.

1 example for a global message by the bot:

!rcon say all Welcome you our server!

All rcon commands:

# ZBot BattlEye RCON commands

**All commands are prefixed with !rcon**

## Commands

 players                   List all players                                                                                                 
 admins                    List all admins                                                                                                  
 bans                      List all bans                                                                                                    
 load scripts              Reloads al BE scripts                                                                                            
 load events               Reloads al BE events                                                                                             
 say all [text]            Sends text to all users                                                                                          
 say [playerId] [text]     Sends text to specific user id                                                                                   
 MaxPing [ping]            Sets the maxping of the serve.                                                                                   
 kick [playerId] [reason]  Kicks player (eg: kick 32 Language pls.)                                                                         
 ban [playerId] [minutes]  Bans online player (eg: ban 11 0 Duping) 0 = forever                                                             
 [reason]                                                                                                                                   
 addBan [GUID|IP]          Bans on/off player (eg: addBan 127.0.0.1 0 Duping)                                                               
 [minutes] [reason]                                                                                                                         
 removeBan [banId]         Remove bans (eg: ban 11 )                                                                                        
 version                   Display the BattlEye version                                                                                     
 update                    Check for a newer BattlEye version                                                                               
 loadBans                  Reload Bans from bans.txt                                                                                        
 writeBans                 Rewrite Bans to bans.txt                                                                                         
 disconnect                Disconnects the rcon                                                                                             
 exit                      Exits the whole rcon client                                                                                      

## Server Commands

**All commands are prefixed with !rcon**

 #shutdown                 Shutdown the GAME server                                                                                         
 #lock                     Locks the GAME server                                                                                            
 #unlock                   Unlocks the GAME server                                                                                          
 #missions                 Stops current missions and goes to mission list                                                                  
 #reassign                 Moves all players back into the lobby                                                                            
 #userlist                 Displays the list of users on the server                                                                         
 #kick [serverPlayerId]    Kicks an online player                                                                                           
 #exec ban                 Bans an online player                                                                                            
 [serverPlayerId]                                                                                                                           

 

 

Please provide as much feedback as possible ! 1 mistake by myself can crash the whole bot. So if there are still use cases where it fails we can finetune it!

You can join our discord server to discuss or report bugs ( or the topics ).

 

https://discord.gg/WYbeSKR

 

 

Technical info about the bot.

  • Hosted in france on a good server.
  • Coded in NodeJS ( Ecmascript 6 ).
  • Modular build

 

 

The bot will be hosted by myself until we encounter any problems we can't solve that way.

If i ever stop hosting the bot i will release the sourcecode.

I might also release the sourcecode earlier. ( If i know you, you can ask me for access to the code).

 

Credits - Testers

 

  • MGT -> DB
  • Edge of Sanity -> Tobias Solem

 

Screenshots

4AN21EJ.png

KIOS5JD.png

 

 

po21f40.png

 

7MLBIRd.png

 

6GFfIC9.png

 

 

 

 

Edited by Zupa
  • Like 12

Share this post


Link to post
Share on other sites
Advertisement

Pretty cool. I got my server set up but then I got this message:

RCON server disconnected on purpose. Config reloaded?
@ 12/15/2016, 03:23:09: RCon admin #2 (37.187.56.99:37911) logged in
Unable to connect to server. Trying to reconnect in 10 sec.

The bot didn't seem to respond so I kicked it to see if it would reconnect and even though I've invited it again, it hasn't returned. 

Share this post


Link to post
Share on other sites
1 hour ago, BetterDeadThanZed said:

Pretty cool. I got my server set up but then I got this message:


RCON server disconnected on purpose. Config reloaded?
@ 12/15/2016, 03:23:09: RCon admin #2 (37.187.56.99:37911) logged in
Unable to connect to server. Trying to reconnect in 10 sec.

The bot didn't seem to respond so I kicked it to see if it would reconnect and even though I've invited it again, it hasn't returned. 

Mine was working for a few minutes then went offline again... Strange

Share this post


Link to post
Share on other sites

I did some hotfixes on thé bot now. It crashed.

Is it working norw?

Don't forget to reload config when changed in panel

!zbot reload

 

Im back to bed now

  • Like 1

Share this post


Link to post
Share on other sites
40 minutes ago, Zupa said:

I did some hotfixes on thé bot now. It crashed.

Is it working norw?

Don't forget to reload config when changed in panel

!zbot reload

 

Im back to bed now

Yup working like a charm! Thanks again!

Share this post


Link to post
Share on other sites
54 minutes ago, coftsock said:

the bot does not emit side chat, what did i do wrong? joining and leaving gets emitted but not side chat??

Hi man

It's probably a configuration mistake.

  • Are you sure that the chosen discord channel exists for the one you choose as side?
  • Does the bot have access to this channel?
  • Have you reloaded the bot when the config changed => !zbot reload

This might fix your issue.

Share this post


Link to post
Share on other sites
5 hours ago, Dragonslayer10 said:

Mine was working for a few minutes then went offline again... Strange

I woke up this morning  to find it working. Maybe there's a cool down when it gets disconnected.

*Edit* Looks like my server restarted 2 1/2 hours ago and it didn't reconnect after that.

Share this post


Link to post
Share on other sites
2 minutes ago, BetterDeadThanZed said:

I woke up this morning  to find it working. Maybe there's a cool down when it gets disconnected.

The bot crashed due to a destroyed rcon connection which was trying call some functions. 

I'm still finetuning some of the connection/ reconnecting processes to make them go smooth

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.