---
title: "Discord bot guides | StreetHosting Guide Center"
description: "Deploy bots in Node.js, Python, Java or Go with low latency and a control panel. 50 guides from StreetHosting."
url: "https://streethosting.com.br/en/guides/discord-bots"
type: "page"
language: "en-US"
---

# Discord bot guides

Deploy bots in Node.js, Python, Java or Go with low latency and a control panel.

50 guides in this category

Search guides

/

Filters and sorting

50 guides

[Discord bots Beginner 24/7 Discord bot hosting in Brazil Discord bot hosting 24/7 combines a process manager with automatic restart, a token kept out of your code, logs and a server in Brazil for low latency to the API and your players. 6 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-hosting-24-7) [Discord bots Intermediate Buttons and select menus in a Discord bot with discord.js v14 Learn to build ButtonBuilder and StringSelectMenuBuilder, read the customId in interactionCreate, meet the 3 second deadline, choose between a collector and a global handler and disable used buttons. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-buttons-select-menus) [Discord bots Intermediate Temporary voice channels on Discord: the join to create system Instead of keeping dozens of empty voice rooms, leave a single trigger channel. When someone joins, the bot creates a room named after the person, moves them in and deletes the channel when everyone leaves. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-temporary-voice-channels-bot) [Discord bots Intermediate Temporary roles on Discord: how the bot removes them after X days A 30-day VIP or a 7-day timeout only works if the role comes off at the right time, even when the bot restarts along the way. Learn how to store the expiry date and remove the role safely. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-temporary-roles-bot) [Discord bots Intermediate Member count voice channel on Discord: how to build it with a bot A stats channel shows the member total in the name of a voice channel nobody can join. The trick is Discord's rename limit, which only allows 2 changes per 10 minutes per channel. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-member-count-voice-channel) [Discord bots Beginner Discord embeds with discord.js: how to build formatted messages The embed is the colored card that gives your bot's messages a professional look. Learn to build one from scratch, the official limits, what markdown works inside it and how to edit an embed that was already sent. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discordjs-embed-formatted-messages) [Discord bots Intermediate Discord bot polls: native poll, reactions or buttons Discord has a native poll and the bot can send it with one field on the message. Learn when it is enough, when reactions or buttons make more sense, how to limit to one vote and how to read the result. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-polls-voting) [Discord bots Beginner Used disallowed intents error in a Discord bot: how to fix it The bot crashes on connect with Used disallowed intents, or it connects and cannot see the text of messages. Both have the same root: privileged intents must be switched on in the portal and declared in the code. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-disallowed-intents-error) [Discord bots Intermediate How to post news from an RSS feed in a Discord channel Learn to read an RSS feed with the rss-parser library, save the last item seen, poll without overloading the site and post each story in an embed with a title and link. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-rss-feed-news) [Discord bots Intermediate How to add artificial intelligence to a Discord bot A bot that answers when mentioned, remembers the channel's recent conversation and doesn't blow the budget. The code uses plain fetch against an API compatible with OpenAI's chat API, with URL, key and model in environment variables. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-artificial-intelligence) [Discord bots Intermediate Discord reminder command: a bot that DMs you after 10m, 2h or 3d A reminder is only worth anything if it arrives even after the bot restarts. Learn the duration parser, the table that stores the reminders, DM delivery with a channel fallback and the limit that prevents abuse. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-reminder-bot) [Discord bots Intermediate Modals and forms in a Discord bot: a staff application with discord.js Learn to open a modal with showModal, build fields with TextInputBuilder, read the answers with fields.getTextInputValue and send everything to a staff channel with approve and reject buttons. 6 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-modals-forms) [Discord bots Intermediate How to announce Twitch and YouTube live streams in Discord Learn how to query the Twitch Helix API and the YouTube RSS feed, build the announcement embed and remember what was already announced so the bot never repeats a message. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-twitch-youtube-live-notifications) [Discord bots Intermediate Discord suggestion system with voting, approval and a thread An organized suggestions channel: the person uses /suggest, the bot posts an embed with vote buttons, opens a thread for the conversation and staff approve or reject with a reason, changing the embed color. 7 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-suggestion-system-bot) [Discord bots Beginner Keep your Discord bot token safe: .env, .gitignore and what to do if it leaks The bot token is its password. Whoever has the token controls the bot. Learn how to move the token out of your code with a .env file, keep it off GitHub and what to do when it leaks. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-token-environment-variables) [Discord bots Intermediate Discord sales bot: how to build a store Selling VIP and roles through Discord looks simple until the first fake payment receipt shows up. Here is how the store works under the hood and what has to exist before you open sales. 9 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-sales-bot) [Discord bots Beginner Discord bot hosting: bot plan or root VPS? You think you need a VPS, but a bot plan may already cover it and save you hours of administration. This guide separates the two paths by what each one really delivers. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-hosting-vs-vps) [Discord bots Intermediate How much RAM and CPU a Discord bot needs Picking a bot plan by guesswork leads to two expensive mistakes: paying for idle memory or watching the process die at a peak. This guide shows what uses resources and how to measure before you buy. 8 min Read guide](https://streethosting.com.br/en/guides/discord-bots/how-much-ram-does-a-discord-bot-need) [Discord bots Beginner Discord announcement templates: how to write one people read Most server announcements die on the first line. This guide breaks down the anatomy of a notice that works, when to mention everyone without burning your audience, and gives you six ready-made templates for the cases that keep coming back. 10 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-announcement-template) [Discord bots Intermediate How to schedule automatic Discord messages with a bot Scheduled messages are great for event announcements, voting reminders and recurring notices. See how to implement them with node-schedule in a Node.js bot, plus scheduling best practices. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-schedule-messages) [Discord bots Beginner How to set up an automatic welcome message on Discord with a bot A welcome message sets the first impression of your server. See how to set it up with your own Node.js bot or with ready-made bots, and what to include to keep new members around. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-welcome-message-bot) [Discord bots Intermediate How to make a Discord bot send automatic DMs to members Automatic DMs are useful for private welcome messages, purchase confirmations and important notifications. Learn how to implement them with discord.js and handle closed DMs correctly. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-send-automatic-dm) [Discord bots Beginner Slash commands vs prefix commands for Discord bots: which to use Discord changed how bots receive commands. Slash commands are the official standard, but prefix commands still work. Learn when to use each one and how to migrate. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-slash-commands-vs-prefix-commands) [Discord bots Intermediate How to protect your Discord server from raids and spam with a bot Raids can take down a community in minutes with mass joins and spam. See how a bot guards the door with verification, message limits and a lockdown mode for emergencies. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-anti-raid-bot)

Show 24 more of 26

## Topics in Discord Bots

[See all 15 topics](https://streethosting.com.br/en/guides/topics)

[Linux administration78](https://streethosting.com.br/en/guides/topics/linux) [Hardware and datacenter68](https://streethosting.com.br/en/guides/topics/hardware) [Costs, plans and billing45](https://streethosting.com.br/en/guides/topics/costs) [Deploying and running apps41](https://streethosting.com.br/en/guides/topics/deploy) [Security and hardening39](https://streethosting.com.br/en/guides/topics/security) [Community and game modes37](https://streethosting.com.br/en/guides/topics/community) [Getting started32](https://streethosting.com.br/en/guides/topics/getting-started) [Automation and webhooks31](https://streethosting.com.br/en/guides/topics/automation) [Monitoring and alerts28](https://streethosting.com.br/en/guides/topics/monitoring) [Performance and optimization22](https://streethosting.com.br/en/guides/topics/performance) [Errors and diagnostics21](https://streethosting.com.br/en/guides/topics/troubleshooting) [Migration20](https://streethosting.com.br/en/guides/topics/migration) [Minecraft server administration16](https://streethosting.com.br/en/guides/topics/minecraft-administration) [Databases16](https://streethosting.com.br/en/guides/topics/databases)

## Learning paths

Curated sequences that take you from the basics to advanced topics. Read them in order or jump straight to what you need right now.

### Discord bots from scratch

Host a bot 24/7, deploy with PM2, slash commands and rate limits.

3 guides

1. [01 24/7 Discord bot hosting in Brazil](https://streethosting.com.br/en/guides/discord-bots/discord-bot-hosting-24-7)
2. [02 Deploy a Discord bot with Node.js and PM2: env vars and auto restart](https://streethosting.com.br/en/guides/discord-bots/deploy-discord-bot-pm2)
3. [03 How to create a Discord bot with slash commands](https://streethosting.com.br/en/guides/discord-bots/create-discord-bot-slash-commands)

Next step

See bot plans

24/7 Discord bots with fast activation and support in Portuguese.

[See bot plans](https://streethosting.com.br/en/bots)

[← All categories](https://streethosting.com.br/en/guides)
