EN · $ USD
Discord Bot Hosting

How to Set Up a Discord Server and Bots for Your Gaming Community

7 min read Updated: OyunBulut technical team

In short

To set up a Discord server for a gaming community, first enable Community, build a channel layout with info, chat, game, support and voice categories, order your roles by hierarchy, and turn on Onboarding and AutoMod. Then add a ticket bot and a status bot that shows your game server's player count, and run your own bots 24/7 on a VDS with PM2.

In this guide
  1. Step 1: Create the server and enable Community
  2. Step 2: Build your channel layout
  3. Step 3: Set up roles and verification
  4. Step 4: Set up a ticket system
  5. Step 5: Write a server status bot
  6. Step 6: Run your bots 24/7 on your own VDS
  7. Keeping the community alive: events and announcements
  8. Voice chat: TeamSpeak alongside Discord
  9. Next step: choose a server for your bots

A good Discord server for a gaming community comes down to a clear channel layout, a well-defined role hierarchy, a verification step that filters newcomers, and a few bots that automate the busywork. In this guide, we start from an empty server and build a structure that can carry your FiveM, Minecraft or Rust community, add ticket and server status bots, and show you how to run your own bots 24/7 on a VDS.

Step 1: Create the server and enable Community

  1. In Discord, click the + button in the left sidebar, choose Create My Own, then For a club or community.
  2. Go to Server Settings → Enable Community. Community mode unlocks features such as announcement channels, Onboarding, Server Guide and growth insights.
  3. During setup, Discord asks you for a rules channel and a community updates channel for moderators; we'll create these in the layout below.
  4. In the Moderation section, set the verification level to at least Medium; at this level, accounts must have been registered on Discord for a certain amount of time, which filters out freshly created spam accounts.

Step 2: Build your channel layout

Players shouldn't get lost looking for a channel. Group categories by purpose and keep the number of channels to what will actually be used:

CategoryChannelsPurpose
INFOrules, announcements, server-status, updatesRead-only; only staff can post
GETTING STARTEDwelcome, how-to-connect, faqGet new players onto the server
CHATgeneral, media, suggestionsCommunity interaction
GAMEin-game-chat, looking-for-team, eventsGame-specific conversations; if you run multiple games, give each its own category
SUPPORTopen-a-ticket, reports-and-appealsChannels where the ticket bot works
VOICELobby, Team 1, Team 2, AFKVoice chat; set user limits on team channels
STAFFstaff-chat, bot-log, mod-updatesVisible to staff roles only

Set channel permissions at the category level, not one by one, and keep channels synced with their category. That way, permissions are applied automatically whenever you create a new channel.

Step 3: Set up roles and verification

Role order matters in Discord: a role can only manage roles below it. Your bots' role must sit above the roles they assign. A sample order:

  1. Founder - all permissions
  2. Bot - for bots only, above the roles they assign
  3. Admin - channel and role management
  4. Moderator - timeouts, deleting messages, moving members between voice channels
  5. Support Team - can see ticket channels
  6. Whitelist / Approved Player - players allowed into the game
  7. Member - everyone who passed verification

You don't need an external bot for verification. In Onboarding, you can add questions like "Which game do you play?", link answers to roles, and set up a flow that keeps channels locked until members accept the rules. Use AutoMod to automatically block invite links, spam and a list of banned words, and send violations to the bot-log channel.

If you want to tie access to your FiveM server to a Discord role, the FiveM whitelist system: access via Discord role guide explains how to check that role on the game server side.

Step 4: Set up a ticket system

Discord doesn't have a built-in ticket feature; bots handle this. Here's how it works: a player clicks a button in the open-a-ticket channel, the bot opens a private channel or private thread visible only to that player and the Support Team role, and when the issue is closed, it saves a transcript of the channel to the log channel.

When adding a ready-made ticket bot, keep these points in mind:

  • Give the bot only the permissions it needs; don't grant it Administrator.
  • It should offer category selection (payments, reports, ban appeals, technical issues) so the right person sees the right ticket.
  • It should be able to save transcripts of closed tickets.

If you host an open-source ticket bot on your own server, your data stays with you and you don't pay a monthly bot subscription.

Step 5: Write a server status bot

The most requested bot is one that shows whether your game server is online and how many players are on it. FiveM servers publish this information at http://SUNUCU_IP:30120/players.json and /info.json (replace SUNUCU_IP with your server's IP). The discord.js example below reads the player count every minute and writes it to the bot's status line (it requires Node.js 18 or later, because it uses the built-in fetch):

// durum.js
const { Client, GatewayIntentBits, ActivityType } = require('discord.js');

const client = new Client({ intents: [GatewayIntentBits.Guilds] });
const FIVEM = 'http://SUNUCU_IP:30120';

async function guncelle() {
  try {
    const [oyuncular, bilgi] = await Promise.all([
      fetch(`${FIVEM}/players.json`).then(r => r.json()),
      fetch(`${FIVEM}/info.json`).then(r => r.json())
    ]);
    const max = bilgi.vars?.sv_maxClients ?? '?';
    client.user.setActivity(`${oyuncular.length}/${max} oyuncu`, { type: ActivityType.Watching });
  } catch (e) {
    client.user.setActivity('Sunucu kapalı', { type: ActivityType.Watching });
  }
}

client.once('ready', () => {
  guncelle();
  setInterval(guncelle, 60_000);
});

client.login(process.env.DISCORD_TOKEN);

The status text strings in the example ("oyuncu" means "players", "Sunucu kapalı" means "Server offline") can be changed to whatever you like. Writing the status into a channel name may look tempting, but Discord only allows a channel to be renamed a few times within a short period; for frequent updates, the bot's status line or a single message edited in the server-status channel works better. For Minecraft, the same idea is implemented with a library that queries the server list ping protocol. For details on the Discord side, see the official discord.js documentation.

Step 6: Run your bots 24/7 on your own VDS

A bot running on your PC goes quiet when your PC shuts down. Free bot hosting services come with sleep modes and resource limits. The most reliable solution for your own bots is a small Linux VDS: Discord bot VDS plans come with root access, NVMe storage and layered DDoS protection, and you can run your status bot, ticket bot and music bot together on the same machine.

After installing Node.js on Ubuntu, keep the bot running with PM2:

mkdir -p ~/botlar/durum && cd ~/botlar/durum
npm init -y
npm install discord.js
sudo npm install -g pm2

DISCORD_TOKEN='buraya-token' pm2 start durum.js --name durum-botu
pm2 save
pm2 startup

Also run the line starting with sudo that pm2 startup prints in its output; this way, your bots start automatically when the VDS reboots. Replace 'buraya-token' ("your-token-here") with your bot token. Don't hard-code the token, and never push it to GitHub. The full setup is covered in the Installing a Discord.js bot on a VDS and running it 24/7 with PM2 guide, and what to do if your token leaks is explained in the bot token security article in our knowledge base.

If you run multiple bots, you can see the status of all of them on one screen with pm2 list and follow error logs with pm2 logs durum-botu. Keeping each bot in its own folder with its own token stops a problem in one from affecting the others.

Keeping the community alive: events and announcements

Channels and bots are infrastructure; what grows a community is regular content and events. A few practical tips:

  • Use the Events feature: Announce tournaments, wipe days or roleplay events in advance with Discord's built-in Events feature; members click "Interested" to get a reminder.
  • Keep announcements rare and valuable: Pinging everyone for every small change leads people to mute notifications. Instead of @everyone, create an opt-in "Announcement Ping" role.
  • Publish a changelog: Sharing a weekly summary of the scripts, maps or plugins added to the server keeps players coming back.
  • Make feedback visible: Use a forum channel for suggestions; each suggestion becomes its own post and rises to the top through voting.

Voice chat: TeamSpeak alongside Discord

Discord is very strong for chat and community management. But competitive clans and large roleplay teams often use TeamSpeak too, for granular voice channel permissions, self-hosting and low latency. A common setup is Discord for announcements, tickets and community, and TeamSpeak for operations and in-team voice. If you want to compare the two, the TeamSpeak or Discord? article will help. For your clan, Istanbul-based TeamSpeak server plans come ready with DDoS protection, automatic setup and a web panel.

Next step: choose a server for your bots

Once your channel layout and roles are in place, all that's left is making sure your bots keep running while your community sleeps. For a status bot and a ticket bot, the OB-DISCORD-1 bot VDS with 2 GB RAM is enough to get started; if you'll add more memory-hungry services such as a music bot and Lavalink, the OB-DISCORD-3 with 4 GB RAM gives you comfortable headroom. OyunBulut servers run in Istanbul, and if you get stuck on any setup step, you can open a support ticket in Turkish.

Frequently asked questions

How many channels should a gaming Discord server have?

As many as will actually be used. Around 15-25 channels in total across info, getting started, chat, game, support, voice and staff categories is enough for most communities; closing empty channels makes the server feel more active.

Do I need a bot for Discord verification?

No. Discord's Onboarding feature handles rule acceptance and role selection, and the verification level setting filters new accounts; you only add a bot if you want extra steps such as a captcha.

How do I show my FiveM server's player count on Discord?

A FiveM server publishes its player list at players.json and server info at info.json. A small discord.js bot can read these every minute and write the player count to the bot's status line.

What do I need to keep a Discord bot online 24/7?

You need an always-on server that doesn't depend on your PC. If you run the bot with PM2 or systemd on a small Linux VDS, it restarts automatically when it crashes and when the server reboots.

Can I run multiple bots on one VDS?

Yes. Just keep each bot in its own folder and start them under different names in PM2; plan your RAM based on the total needs of all your bots.

For this guide

Recommended plans

Keep your status, ticket and music bots running while your community sleeps with root-access Discord bot VDS plans, and give your clan ready-to-use voice chat with preinstalled TeamSpeak servers.

OB-DISCORD-1

Recommended

2 GB RAM

$1.96/mo

+VAT

  • Processor2 vCPU
  • ModelAMD Ryzen / Intel
  • Disk30 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

3 GB RAM

$2.26/mo

+VAT

  • Processor4 vCPU
  • ModelAMD Ryzen / Intel
  • Disk35 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

4 GB RAM

$2.55/mo

+VAT

  • Processor4 vCPU
  • ModelAMD Ryzen / Intel
  • Disk40 GB NVMe
  • LocationIstanbul
  • Port: 1G Port
  • Traffic: Fair use
  • Virtualization: KVM
  • Multi-layer DDoS protection

Discord Bot VDS — tüm paketler TeamSpeak — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.