ASA Discord Global Chat NodeJS
Ark Ascended In game Global chat relay to Discord channel back and fort made in NodeJS and can be deployed on DockerInstall Node.js
- Download Latest LTS
- Install
Download and Setup the repo
- Extract zip file
- Go to directory
- create a file name it .env (Env file is being ignored on repository for security purposes you have to make your own)
- change all the required field with your own credentials
CLIENT_ID="your_bot_clientid"
GUILD_ID="your_discord_server_id"
CHANNEL_ID="your_bot_channelid"
TOKEN="your_bot_token"
HOST="your_ark_host_or_ip_address"
PORT="your_ark_rcon_port"
RCONPWD="your_ark_rconpassword"
VIP="name1,name2,name3"
VIPCOLOR="1,0,1,1"
PREFIX="[Discord] "
SUFFIX=""
MAP="[TheIsland] "
CLUSTER="Vanilla"
FILTERS="AdminCmd,Tribe Tamed a,Tamed a,was killed!,added to the Tribe,RichColor,RCON: Not connected,SERVER:,Tribe,Day"
- Descriptions
CLIENT_ID ---------------- Bot client id
GUILD_ID ----------------- Discord Server (Right click to your server and Copy Server ID) make sure developer mode is on
CHANNEL_ID --------------- Channel to send and receive global chats (Right click to your channel and Copy Channel ID) make sure developer mode is on
TOKEN -------------------- Token Bot (Visit and create bot on Discord develoports link below)
HOST --------------------- IP or Host
PORT --------------------- Server game RCON port
RCONPWD ------------------ Server Admin/Cheat password
VIP ---------------------- Each name should separate by quoma (,) Node: exact name on discord
VIPCOLORPRE -------------- Color <RichColor Color=\"1,0,1,0\">
VIPCOLORSUF -------------- Closing </>
PREFIX ------------------- Start of the message
SUFFIX ------------------- End of the message
MAP ---------------------- Current MAP
CLUSTER ------------------ To know where cluster to save if running multiple cluster
FILTERS ------------------ All known text buffer that should be remove
- Discord Dev link
- Open Discord (Profile) Settings then go to Advanced Section Click or Turn on Developer Mode
Deploy
- Ubuntu/Linux
sudo docker-compose up -d --build
- Windows Docs
Deploy on NPM
- go to directory
- run (it will generate files like dependencies)
npm i
- start the app
npm start
Deploy without cache
sudo docker-compose build --no-cache
sudo docker-compose up -d
Changing config .env
sudo docker-compose down
change .env
sudo docker-compose up -d
Redeploy command on Docker
sudo docker-compose down && git pull && sudo docker image rm asadiscordglobalchatnodejs_app && sudo docker-compose up -d --buildWork around on failovers
If the app receive timeout from the server it will exit and you have to type npm run again
you can use forever or nodemon to install this
npm i forever --global
npm i nodemon --global
then
forever start -c "nodemon --harmony" index.js --exitcrash
or
forever start -c "nodemon" index.js
forever list
forever stop <PID>
NOTES
- npm start (if the app throws an error you need to restart the app manually so it is recommended to deploy it on docker for automation)
- This app is only support 1 server/map and it will be updated as soon as ASA released more maps
- Adding double quotes will prevent any errors when deploying
- env MAP should add space at the end eg: MAP="[TheIsland] " also same as PREFIX and SUFFIX
For Testing Discord join to my Dedicated server: https://discord.gg/2r442wearu
Source: https://github.com/ohmcodes/ASADiscordGlobalChatNodeJS
Please Leave a star!