[Release] D2FiveM - Control your FXServer with Discord

for windows what I did was made a Batch File like this

cd C:\Users\Matthew\Documents\DiscordToFiveM_JS
node app.js

and named that to start.bat

Updated to v2.0.0



  • Added multiple Server support
  • Added separated Command-Enter & Command-Answer channels
  • Added a Kick/Ban Log channel
  • Added a language file for the FXServer resource
  • Improved the ‘chkcon’ command


Download in the First Post!

You might want to test this new version out.

I am having a small issue with it throwing a error https://i.gyazo.com/ea52b80ee1a9aeccd74e7a38c8fbaccd.png

What did you do before this happened

!!getclients

and when I do !!cmdlist it deletes the message and says nothing

DM me your configuration please (config.json, servers.json, channels.json)

@NoahC4062 I am having the same issue as you since updating to 2.0.0 did you manage to find a fix at all?

EDIT:
Actually I am getting a different error to you:


C:\Users\Chapm\Desktop>echo off
Bot has started, with 7 users, in 20 channels of 1 guilds.


##############
## Current Version: 2.0.0
## Newest Version: 2.0.0
##
## Up to date!
##############


(node:4696) UnhandledPromiseRejectionWarning: DiscordAPIError: Missing Permissions
    at item.request.gen.end (D:\DiscordToFiveMBot [2.0.0]\[DiscordToFiveMBot]\DiscordToFiveM_JS\node_modules\discord.js\src\client\rest\RequestHandlers\Sequential.js:71:65)
    at then (D:\DiscordToFiveMBot [2.0.0]\[DiscordToFiveMBot]\DiscordToFiveM_JS\node_modules\snekfetch\src\index.js:215:21)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:4696) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:4696) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@daniel992
Your Bots role is probably the problem here…
Easiest is to grant access to read and send messages in every channel.

@SycoTV
Is this the whole error?

@Flatracer yes this is the whole error

Are you sure, because normally there is the first line, then some empty lines and then this, the first line is the important one.

Which version are you using? Did you edit the bot.js in any way?

Please send me your files over. (DM)

Add a syntax to where you can whitelist people like an rcon command? >_> /wladd steam:HEX format? :smiley:

Okay so everything in my server works except when I enter the !!kick or !!ban command and put the server and playerID and reason it comes back with…
Even though they are in the server and that is correct ID

“Hmm, seems like there is no Client with this ID…”

1 Like

Are you using the ID it shows when entering getclients?

yes i am (20 characters)

Hey mate,

When I node the bot it dosen’t give me the “added commands” it just gives me this:

Any idea how to fix?

Found the problem hehe, I closed the command prompt after running the command, it works when I leave it open :stuck_out_tongue:

Thanks for this amazing resource!