BOT Included with every paid LigaHosting service
Discord bots with slash commands.
Describe what the bot should do on your server. It writes a Node.js project with discord.js v14, one file per slash command and a guide from the developer portal to a running bot.
- A /status command that shows my CS 1.6 server map and players.
- wrote
src/index.js - wrote
src/commands/status.js - wrote
src/deploy-commands.js - Project ready: npm install, then npm run deploy.
What you get
- package.json, bot entry point and one file per command
- A script that registers the slash commands
- config.example.json for the token and IDs
- A README from creating the application to running it with pm2
Ask for things like
- A ticket bot: a button opens a private channel, /close archives it.
- Welcome messages with a role picker.
- A /status command for a game server, with an auto-updating embed.
How it is built
Node.js 20 and discord.js v14 with ES modules. Only the gateway intents the features need are requested.
Questions
Where does the bot run?
Anywhere Node.js runs, such as a LigaHosting VPS. The README shows how to keep it running with pm2.
Is my token safe?
The token goes in config.json on your side and is never written into the code.