Jump to content
Zupa

ZBot - BE Rcon Discord Bot

Recommended Posts

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 ).
  • UPCOMING in next version: 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

 

KIOS5JD.png

 

 

po21f40.png

 

7MLBIRd.png

 

6GFfIC9.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By HadeYZ
      Hello
       
      I've just bought myself a DayZ Epoch server, but I have some trouble with it.
      I've installed noxsicarius Epoch admin tools, but now whenever I try to buy building supplies as a non admin I get kicked by battleye.
      The error code is 214.
       
      Thanks in advance for any help
    • By C4-timah
      I am enjoying Grahame's EpochZ immensely.  However, if you are infected by the z's, after 30min you will die (animation for the 30min infection period is excellent btw). Upon death you will be shown the option to re-spawn. At that time you are promptly kicked by BattlEye for setvariable restriction #0:
      04.10.2018 00:14:33: C4-timah (23.119.200.220:2304) 57f9a830eeb99412623ce1c3d14b7d50 - #0 "ryanzombiesinfected" = 0 2:2877 Epoch_Male_F  
      If you are killed by the z's (beaten to death), upon your death you will also be shown a re-spawn option and then promptly kicked again for a BattlEye setvariable restriction #0:
      05.10.2018 21:53:02: C4-timah (23.119.200.220:2304) 57f9a830eeb99412623ce1c3d14b7d50 - #0 "ryanzombiesimmunity" = false 2:17479 Epoch_Male_F Adding
      !"ryanzombiesinfected" = 0 or
      !"ryanzombiesimmunity" = false does not appear to stop the BE kick. All the other filters in the setvariable.txt all start with  !=  which would indicates the filter must match exactly which would lead me to believe the key word that I need is something entirely different. I am using BattlEye Filter Manager to add the exceptions to the setvariable.txt. As you'll see, all the exceptions have !=" instead of !" unlike the last two that I have placed.
      //new2 5 "" !=(traderName|Offer|Accept|BUILD_SLOT|TRADE_ACTIVE|last_targeter|epoch_(antagobj|antagBomb)) !="bis_fnc_objectvar_var" !="bis_fnc_selectrespawntemplate_respawned" !="#(rev_enabled|var)" !="cup_tow_towedveh" !"ryanzombiesimmunity\" = false" !"ryanzombiesinfected\" = 0"  
      My rpt file shows the following error when killed by an EpochZ Zombie:
      17:44:02 BE protection activated for player id=726964973, name='whitehorse', msgType=285 setvariable.log:
      11.10.2018 17:44:02: whitehorse (75.80.233.157:1024) c2568b411cbd25fa774021698eade7c5 - #0 "ryanzombiesinfected" = 0 2:15917 Epoch_Male_F Ideas? Getting kicked every time you get killed by a Z has to be annoying to theses guys and I'd rather not lose the few that are consistently playing on our server. Any help is greatly appreciated.
    • By npploveyou
      Hi,
      I' using the plm script. When moving and releasing a crate, users are being kicked by SetPos #0. The log is as below:
      xxxx - #0 2:1469 USOrdnanceBox [6329,7782,306] xxxx - #0 2:535 USVehicleBox [1897,9119,289] I tried to add those box names to SetPos.txt under 5 line:
      5 !="RUVehicleBox" !="USVehicleBox" But it doesn't seem to work, users are still being kicked.
      Can you please provide some help how to add these boxes names (or actions) into BE filter?
      Thanks.
       
       
    • By XxPRkickassxX
      So I've tried many many times already to update my Battleye and nothing happens. I've uninstalled it and deleted the files and then gone to steam and verified the integrity of game files and still nothing! Whenever I try to join a game its starts downloading the mission files then I get kicked and in the bottom left side of my screen it says Server requiring Battleye version 1.239 up-to-date. I don't know what to do. This is not the first time that this has happened. In the past I used to to just be able to download it from the Battleye website but they no longer have the downloads. I'm trying to play Overwatch and Epoch. Those two mods are up to date. I've verified them like 10 times already. Maybe someone could share with me their battleye folders?
      Anyways please help and thanks in advanced!
    • By kubosov
      I'm trying to set up vanilla A3Epoch server, but whenever user join, get kicked BE with "Script restriction #23" 

      Arma3 Server:1.76.142872  (steamcmd)
      Epochhive:0.5.0.0757-0-ge16ee71 (epochmod.com)
      EpochClient:0.5.0.0 (steamcmd)
      ----
      scripts.log
      timestmp: username (ip:port)UUID - #23 "eplaced = true; }; } forEach _data; private _ehId = addMissionEventHandler [_event select [2], _code]; private _argsVarName = f" ----
      scripts.txt #23  (no changed file.)
       
      7 addItem !="{player addItemToVest _x} forEach _vestItems;" !="player addItem _item;" !="_plyr addItemToVest _missionItem;" !="axeVIP addItemToVest _item;" !="_plyr  addItemToVest _missionItem;" !="EPOCH_fnc_addItemOverflow" !="CBA_fnc_addItem" !="\\fnc_addItem" !="\"addItem" !="fnc_addItemCargo" Anyone have a fix for this?
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...