Discord Bots19 articles

Hosting a Discord bot: uploads, tokens, dependencies and staying online.

Getting your bot online for the first timeFrom a folder on your computer to a process that stays running without you.2 min readKeeping your bot token out of troubleThe token is the bot. Anyone who has it is the bot. Treat it accordingly.2 min readDependencies: package.json and requirements.txtHow the server knows what to install, and why «it works on my machine» stops here.1 min readYour bot shows offline in DiscordWorking through it in the order that finds the cause fastest.2 min readPrivileged intents, and the errors they causeWhy your bot cannot read messages, see members, or starts with a «disallowed intents» crash.2 min readYour slash commands do not appearRegistration is separate from your code running, and that is the whole confusion.1 min readHow much memory does a Discord bot need?Honest numbers, and the two things that actually move them.1 min readKeeping the bot up: restarts, crashes and schedulesWhat to automate, what to fix, and how to tell which is which.2 min readRate limits: what they are and how to stop hitting themDiscord throttles bots that ask for too much too fast. The fix is usually in your loop.2 min readStoring data your bot needs to rememberJSON files, SQLite and MySQL — which one, and when to move up.2 min readUpdating your bot without breaking itA routine for pushing changes that does not end with a broken bot and no way back.2 min readPermissions: why your bot cannot do the thingRole position, channel overrides and the hierarchy rule that catches everyone.2 min readLogging that tells you what happened after it happenedConsole output disappears at the next restart. This is what to do instead.2 min readSharding: what it is and when you are forced into itA threshold most bots never reach, and what changes when yours does.2 min readPython or JavaScript for a Discord bot?Both are fine. Here is what actually differs when you have to host it.2 min readMusic bots, and why they keep breakingThe most requested feature and the least stable one. Here is what you are taking on.2 min readEmbeds: the limits nobody reads until they hit oneWhy a message that worked in testing fails in production with real data.2 min readMaking a bot do something on a timerDaily posts, reminders and cleanup — and the three ways timers go wrong.2 min readWebhooks: posting to Discord without a bot at allThe simplest thing in Discord, and the one people build a whole bot to avoid learning.2 min read