[Release] Discord Bot to FiveM

Make a Discord App here then from there make a bot. Once you make a bot you will see a button to reveal the bot’s token (DONT SHARE THIS). Put it in the config.json preserving the Bot text. It should look like:
"Token":"Bot XXXXXXXXXXXXXX--XXXXXXXXXXXXX"

Hi, link is dead…

Unlisted until download is fixed

hi i’m trying to implement HTTP: POST (Config._ENDPOINT, function (Req, Res) but from this error,
error loading script discord-bot.lua in resource http-discord-bot: @http-discord-bot/discord-bot.lua:28 attempt to index a nil value (global ‘HTTP’)

This resource is not compatible with the current version of HTTP Handler by Cyntaax. I will get round to updating it when I find time, until then you can download the handler from a previous commit and use that meanwhile.

I am getting this errror in FiveM server console and getting this error when luvit bot.lua

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\vds\Desktop\DC_Bot_Command_Fivem>luvit bot.lua
2022-03-24 07:46:11 | [INFO] | Discordia 2.9.2
2022-03-24 07:46:11 | [INFO] | Connecting to Discord…
2022-03-24 07:46:12 | [ERROR] | 401 - Unauthorized : GET https://discord.com/a
pi/v7/users/@me
2022-03-24 07:46:12 | [ERROR] | Could not authenticate, check token: HTTP Erro
r 0 : 401: Unauthorized

Server token is correct but still getting this errors.

You haven’t setup your Discord bot correctly. Ensure the token is correct.

I cannot see your entire error on the FiveM :confused: