[Release] IN-ServerStatus | JS Discord Bot

IN-ServerStatus

A discord bot that interacts with cfx-api by showing an embed with some player information of any FiveM server you wish. Many thanks to @Pablo-1610 for creating the API. Another massive thank you to @Voix for the image edit.

Features

Discord.js v14
Command Handler
Event Handler
Embed FiveM Server Status
Easy to Setup

How to Install / Download

GitHub: GitHub - Dexvoo/IN-ServerStatus: A bot that updates a embed for FiveM servers information c:

npm install

Create a .env file (at the root of the folder) and use the config below, Please fill in everything except from FiveMMessageID.

# Discord Bot Token
Token=''
# Your Guild Information
ClientID=''
GuildID=''
# Embed Config
ThumnailImage='https://imgur.com/0KIFmOl.gif'
EmbedColour='#a082ff'
FooterText='• IND 2022'
FooterImage='https://imgur.com/0KIFmOl.gif'
# FiveM Server Status
FiveMEmbedUpdateTime=60 # In Seconds
FiveMServerID='lm6l84' # https://keymaster.fivem.net/
FiveMShowPlayerInformation=false # or true
FiveMChannelID=''
DonationWebsite='https://ind.tebex.io'
# Leave blank for installation, once you have the message ID Put it in
FiveMMessageID=''

Discord Commands Register (Don’t have to do this anymore but useful command handler)

npm run commands

Starting Bot

npm run dev

Copy the message id of the message inside of the FiveMChannelID, and place it in the config. Save any .js file and it will be running!

10 Likes

if the server is offline does it show on the embed?

This is correct, here is a picture of them side by side

3 Likes

Sick. amazing release

1 Like

How i can fix this? Thanks!

did you follow the installation steps? if so let me know and i will dm you for further support

Yeah i thinks so where i have to execute the commands? is there an specific folder or something?

any command console thats pointing at the root directory, and you should be all good. if your still having problems, i would like to contact you further investigate the issue your having

Screenshot by Lightshot There i have runned the command because in the normal root directory there didn’t found the packages

Nice release! :v:

1 Like

1.0.1 Update

  • Removed /serverstatus command
  • Changed to guild based commands from global so less time to register
  • Added Checks for if FiveMMessageID is set or it will send the message for you
  • No need to register commands now if you dont wish to.

1.0.2 Update

  • Added new variable to show player information

To Update,
in your .env file, add the following
FiveMShowPlayerInformation=true # or false depending if you want it showing or not.
Download the latest update from the github repository

anyway to help? im using pterodactyl panel and can’t much follow the steps.

im not familar with pterodactyl so i cannot assist with your problems :frowning_face:

Amazing release :grin:

1 Like


I tried host on local but it not work

you clearly didnt follow the instructions because your bot token shouldnt
be in the index.js, please reinstall and start again c:

how do i fix this?

1 Like

Having the same issue

1 Like

Got this at night, and the bot is stopped:

Cannot read properties of undefined (reading ‘everythingOk’)
value: liveStatus.everythingOk

Can you please fix it?

1 Like