DayZ
Not enough ratings
DiscordBot
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod Type: Mechanics
File Size
Posted
Updated
816.213 KB
27 Aug @ 10:07am
12 Sep @ 1:56am
12 Change Notes ( view )

Subscribe to download
DiscordBot

Description
DiscordBot
With this you can display your in-game global & direct server chat to specific discord server channels, display how many players are online in-game to your Discord server & bot, display connected and disconnected players and also display RCon server log to a private channel in your Discord server.
Originally made for the server:
BANDIT HUNTERS - PVP | LOOT+ | BM | TRADER | 100K | RAID | HELI
176.9.113.42:2302


What Is This?
THIS IS NOT A SERVER/CLIENT SIDE MOD FOR YOUR SERVER
This is a JS script that lets you link your Discord bot with your DayZ server through BattlEye RCon, making server events and chat available in your Discord server. Preferably host this app on a free hosting service platform easily like Discloud.

Available Integrations
• Display Global in-game chat to certain discord channel

• Display Direct in-game chat to certain discord channel

• Display player connect & disconnect info to certain discord channel

• Display current in-game online players to certain discord voice channel & in bot activity

• Display RCON logs to certain discord channel

Installation

> Navigate into "Files" folder to access the files.
> Preferably drag and drop the "Files" folder to your desktop and open the folder with VS Code or any other node compiler able IDE.
> Navigate into `package.json` and change "name" to your desired app name (kebab-case only).
> Navigate into `.env` and for each variable add its currect value:

• DISCORD_TOKEN="YOUR DISCORD BOT TOKEN" • CHAT_DIRECT_CHANNEL_ID="YOUR DISCORD DESIGNATED DIRECT MESSAGES CHANNEL ID" • CHAT_GLOBAL_CHANNEL_ID="YOUR DISCORD DESIGNATED GLOBAL MESSAGES CHANNEL ID" • PLAYER_CONNECT_CHANNEL_ID="YOUR DISCORD DESIGNATED PLAYERS CONNECT & DISCONNECT CHANNEL ID" • PLAYER_COUNT_CHANNEL_ID="YOUR DISCORD DESIGNATED ONLINE IN-GAME PLAYERS COUNT VOICE CHANNEL ID" • SERVER_RCON_EVENTS_CHANNEL_ID="YOUR DISCORD DESIGNATED RCON LOGS CHANNEL ID" • BE_IP="SERVER IP" • BE_PORT="SERVER RCON PORT" • BE_PASS="SERVER RCON PASSWORD"

Setup

Now in your IDE (VSCode or other node script able compiler) open a new terminal and type:
npm install
After dependencies installation type in the terminal:
node index.js
Script now will run and display to your Terminal log all the collected data from your RCon server, as long as this terminal runs your bot will be online (or either deploy it on Discloud).

You can join my Discord server if you have any question: https://discord.gg/veMvjXf4WT
1 Comments
TheVeteran187 27 Aug @ 12:13pm 
Great thing to have for visible GlobalChat ingame logs on discord:steamthumbsup: