Start
Your first bot
From an empty page to a checked bot in your downloads in six steps. The build itself takes two to three minutes.
Before you start
- A SwisserAI account. The first build is free while your account still has it; otherwise keep 400 credits available.
- A Discord server where you have the Manage Server permission, so you can invite the bot later.
- For a FiveM resource: access to your server files and
server.cfg.
You do not need the Discord Developer Portal yet. That comes after the download.
The six steps
We build a FiveM resource: a voice channel with the live player count, a /players command, whitelist applications with Approve and Decline buttons, and a check that refuses players without the whitelist role.
- 1
Open Discord bots and start a new bot
In the sidebar open Discord bots and press New bot. Your bots appear on this page as cards.
- 1. New bot: starts a new bot
- 2. Bot card: target, file count and status
- 2
Pick where it runs
Under Where will it run? choose FiveM resource. For a bot you host on its own, keep Standalone. The choice changes what gets written, so make it first.
- 1. Standalone: a Node bot you host anywhere
- 2. FiveM resource: runs inside your FiveM server
- 3
Name it and say what it should do
Type a name, then describe the bot in What should it do?: each command, who may use it, what happens, and which channels and roles are involved. End with "Put all role and channel ids in the config".
- 1. Name: the project and the zip get this name
- 2. What should it do?: commands, who may use them, what happens
No idea where to start? The six examples under the box fill it with a full request. See Starting from a template.
- 4
Build it
Press Build it. The bot page opens and the build starts at once.
- 1. Build it: starts the build
Your first build is free
While your account still has its free build, a note with that title sits above the button and the build uses no credits. Changes to the finished bot are charged normally.
- 5
Watch the build, or close the tab
The status line names what it is doing, the phase rail shows how far it is, and each file appears in the log and the file panel. Ours took 3 minutes 23 seconds. The build runs on our side, so you can close the tab and come back.
- 1. Status line: what it does right now, files, lookups, time
- 2. Planning, Writing, Checking, Fixing, Packaging
When it is done, every phase has a check mark. A number next to Fixing counts the fixing rounds that ran.
- 1. Built and verified: the status line
- 2. Fixing ×1: one fixing round ran
- 6
Check the result and download
When the checks pass, the panel says Everything checks out. Press Download to get the project as a zip, named after your bot, for example
status-whitelist-bot.zip.- 1. Everything checks out: all four checks passed
- 2. Download: the project as a zip
- 3. How to get it running: the setup guide
Ours needed one fixing round: the first check found 4 errors, the build fixed them, and the second check passed.
Note
The bot is not online yet. It needs its own Discord application, a token and an invite. How to get it running in the checks panel and Running your bot walk you through it.