RBDhub • Your Discord ticket bot

This starter runs on your own computer. It stays online while the computer is awake and the program is running. You own the Discord application and these source files.

1. Give your bot a name
Go to https://discord.com/developers/applications and choose New Application. Use a new application dedicated to this bot. On Installation, enable Guild Install. Leave Interactions Endpoint URL empty so the bot receives commands through the Gateway.

2. Invite it to a server you manage
Open https://rbdhub.com/get-a-bot/starter/#invite and enter the public Application ID from General Information. Follow Discord’s install prompt. Alternatively, on Installation choose Discord Provided Link, enable bot and applications.commands under Guild Install, and select Manage Channels, View Channels, Send Messages and Read Message History. Open the install link and select your server.

3. Start it on your computer
Install Python 3.10 or newer from https://www.python.org/downloads/ and extract this ZIP. Open a terminal in the extracted folder. On Windows run “py -3 start.py”. On macOS or Linux run “python3 start.py”. The first run installs discord.py in a local .venv folder.

Turn on Developer Mode in Discord under User Settings → Advanced. Right-click your server icon and choose Copy Server ID. Paste this number into the program. Next, open your app’s Bot page in the Developer Portal and copy or reset its bot token. Enter it at the hidden prompt on your computer. Restarting asks for it again. Experienced operators can supply DISCORD_GUILD_ID and DISCORD_TOKEN through their own environment.

4. Open the desk
In a public text channel such as #support, run /desk and choose the staff role that handles tickets. You need Manage Server to post the button. Members who press Open a ticket get a private text channel. The member, chosen staff, bot and server administrators can see it. Pressing the button again returns the open ticket. Use /resolve in that channel to mark it resolved and keep the conversation. Your team can manage the retained channel in Discord.

If the command is missing, check that the bot prints “is online”, the server ID matches, and you installed the application in that server. If the bot cannot create a ticket, check its four permissions and any channel overrides. Closing the program or sleeping the computer takes the bot offline.

To plan an RBDhub-hosted bot, visit https://rbdhub.com/get-a-bot/. You can save a build while checkout is closed.
