$200 Steam Giftcard Raffle | Sponsored by TF1A3 ×
Jump to content
×
×
  • Create New...
  • 0

config.json issues with Discord bot.


Lucky
 Share

Reason for Locking
Question Answered by Developer

By BGHDDevelopment, on 06/25/20 09:35 PM.

Question

  • Community Administrator

Heyo!


Trying to add the Discord bot into my server, and anytime I input the code as displayed on the release post for the Discord bot, I receive an error in which FivePD unloads due to a config.json error. This error only occurs with that code added into my config.json, and otherwise 1.1 is working great.

 

Here is the code block via pastebin, without the actual Discord code and relevant database info included for server privacy reasons.

Edited by SGTPayne

 

Luckysig.png

 

GTAPoliceMods Community Administrator

Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hey, I do believe that there is a JSON error with your formatting - some character spacing issues.

 

Here is what works for me and I believe is the correct formatting:

  },
"Discord": {
    "enable": true,
    "token": "INSERTTOKEN"
}

 

Link to post
Share on other sites

  • 0
  • Community Administrator
33 minutes ago, Smanbg said:

Hey, I do believe that there is a JSON error with your formatting - some character spacing issues.

 

Here is what works for me and I believe is the correct formatting:


  },
"Discord": {
    "enable": true,
    "token": "INSERTTOKEN"
}

 

image.png.762b036a9e7b540040a179f2abe342cc.png

Same issue unfortunately.

 

Luckysig.png

 

GTAPoliceMods Community Administrator

Link to post
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Important Information

Thanks for visiting GPM. As a user of the GTAPoliceMods platform, we ask that you review the Terms of Use, Privacy Policy, and Guidelines. These principles allow us to continue fostering a great community. We have placed cookies on your device to help improve your experience. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.