Deploying and managing a Discord bot on NGP Cloud.
Java bots run as a single .jar file. The key is building a jar that already contains all its dependencies.
Run your discord.js (or any Node.js) bot 24/7 on NGP Cloud bot hosting.
Host a discord.py, Pycord, Telegram or any other Python bot on NGP Cloud.
When your bot connects to Discord, it asks which kinds of events it wants to receive: messages, member joins, reactions and so on. These choices are…
Your bot token is the password to your bot. Keep it out of your code and use environment variables instead.
Your bot ran perfectly on your own computer, and the moment you upload it, the console says it can't find something. This is the most common…
Discord bots are among the lightest programs you can host, and also among the easiest to accidentally make heavy. A simple bot runs happily on a…
Every Discord bot has a token , a long secret string that proves the program is allowed to act as that bot. Anyone who holds the token controls the…
If your bot refuses to log in and the console says the token is invalid, improper or unauthorised, the problem is almost always small: a copy…
Your bot starts, tries to connect, and immediately stops with a message like "Used disallowed intents" or the gateway close code 4014. It looks…
Discord limits how fast a bot can make requests. Most of the time your library handles it quietly, and you never notice. When a bot misbehaves, such…
A Discord bot is a member of your server with a badge on it, and often with power ordinary members do not have. That power makes it useful, and also…
Updating a bot should be boring: upload new code, restart, done. When it is not boring, it is because the update broke something nobody tested, or…
Sooner or later a bot needs to remember something: a member's level, a server's chosen prefix, a reminder, a ticket number. Variables in memory…
A hosted bot should run for weeks without attention. When it doesn't, the cause is almost always in the console.
A bot that quietly stops working is worse than one that visibly crashes. Members notice when commands stop answering, long before you do, unless you…
Discord bots used to listen for messages like !ban @user . Today most use slash commands, such as /ban . Both still work, but they behave very…
A small bot connects to Discord once and handles every server it is in. As it grows, that single connection becomes a limit. Discord's answer is…