A custom-built Discord bot designed to interact with your FiveM server database, execute utility commands, and manage in-game data through Discord.
- 🔄 Real-time presence updates.
- 💬 Custom
/say,/ping, and/servercommands. - 💸 Player money transactions using
/pay. - 📜 View and manage database entries via
/showdband/getuser. - 🖼️ Avatar animation and nickname setting.
- 🧠 Interaction-based command handling.
-
Clone the repository:
git clone https://github.com/yourusername/fivem-sql-discord-bot.gitcd fivem-sql-discord-bot -
Install Dependencies:
npm install -
Configure your bot:
- Edit
config.jsonwith your bot token and database credentials.
- Edit
-
Deploy commands to Discord:
node deploy-commands.js -
Run the bot:
node index.js
- Node.js v16+
- A Discord bot token
- A MySQL-compatible database connected to your FiveM server
- Make sure the bot has appropriate permissions in your Discord server.
- You may need to whitelist bot IP for database access if it's hosted remotely.
Made for FiveM roleplay servers to easily interact with in-game data through Discord!