Skip to content

Start

Discord Bot Generator

Describe a Discord bot in plain words and get a TypeScript project that has already compiled and started once.

What the Bot Generator does

The Discord Bot Generator writes Discord bots from a description. You say what the bot should do: its commands, who may use them and what happens when they do. It writes a complete TypeScript project with discord.js and hands it over as a zip.

A finished bot: the build log and the checks on the left, the files and the code on the right.

Before you start, you pick where the bot will run:

  • Standalone: an ordinary Node project you run on your PC, a VPS or a bot host.
  • FiveM resource: the bot runs inside your FiveM server. It can see who is online, match players to their Discord accounts, kick them or refuse a connection.

After the first build you keep working in the same project. Ask for a change, paste an error, or ask how to set something up. Each round is checked again before you get it.

Checked before you get it

Every build runs four checks. When one finds a problem, the build fixes it and checks again. You see the result in the checks panel before you download anything.

  • Compiler

    The code compiles in TypeScript strict mode against discord.js 14.27.0.
  • Deprecated API

    No discord.js v13 names and no v14 calls that have been replaced.
  • Project rules

    The rules of the target a compiler cannot see, for example the FiveM runtime rules.
  • Startup

    The bot really starts once in a sandbox, without a live Discord connection, and does not crash.

When all four pass, the panel says Everything checks out. The checks prove the bot builds and starts. They do not click your commands in a real server, so test them after you invite the bot.

What you get

A bot project is a folder of TypeScript source plus the files that tell Node or FiveM how to run it:

  • src/

    The bot: commands, events and helpers, one small file each.
  • src/config.ts

    Reads the token and the channel and role ids, and stops with a clear error when one is missing.
  • package.json

    The dependencies, with discord.js, and the build and start scripts.
  • tsconfig.json

    The TypeScript settings for the target.
  • README.md

    Setup for this bot: permissions, intents, the exact config lines and how to start it.
  • .env.example

    Standalone only: every setting the bot reads, with empty values.
  • fxmanifest.lua

    FiveM only: the resource manifest.
  • dist/

    FiveM only: the compiled JavaScript, so the resource starts without a build step.

The code is yours. It runs on your own machine or server, and nothing in it depends on SwisserAI after the download. We do not host bots.

What it costs

The first build on an account is free while the account still has its free build; the new bot page says so above the button. Everything else costs credits by the work it took:

  • First build

    Typical cost:Free once, otherwise about 90 credits
    Needs available to start:400 credits
  • Change

    Typical cost:about 50-150 credits
    Needs available to start:800 credits
  • Setup question

    Typical cost:about 30 credits
    Needs available to start:800 credits
  • Download

    Typical cost:Free
    Needs available to start:Nothing

The last column is a ceiling, not the price. It is held while the run works; you are charged what the run took and the rest returns at once. The header of the bot shows what the run cost. The showcase bot in this guide cost 128 credits.

Next steps