Nooby Noob

make a discord bot named noobybot and it can answer your questions and fix your server and chat and make ai videos and imagesa and ai games and thier is a website where you tell the ai to fix your server and it will ask you to sign in with discord and what server do you want it to be connected and get the app in your server and boom and its all free

Kodari AI
KodariSep 7 at 11:26 pm 2
NoobyBot
A free Discord bot that answers questions, fixes servers, chats, generates AI videos, images, and games. Features a companion website where users sign in with Discord, select their server, invite the bot, and request server fixes or AI content generation directly through the web interface. The bot integrates seamlessly with Discord servers to provide automated support, creative AI tools, and server management capabilities. All features are completely free with no usage limits, making it accessible for all Discord communities. The website handles authentication, server selection, and bot installation, while the bot executes commands and generates content within Discord channels.
  1. Create a TypeScript Discord bot with slash commands for questions, server diagnostics, safe fix plans, images, videos, and games.

  2. Add a Discord OAuth website with server selection, bot installation, AI tools, and authenticated API routes.

  3. Add local JSON persistence, configurable OpenAI-compatible AI endpoints, environment setup, and run instructions.

  4. Keep server repair safe by generating audited plans instead of executing destructive changes automatically.

Created NoobyBot, a TypeScript Discord bot and web dashboard with:

  • Discord OAuth sign-in

  • Server selection and bot installation link

  • /ask AI questions

  • /server-status read-only server overview

  • /fix safe repair plans

  • /image and /video provider integrations

  • /game browser-game generation

  • Local JSON activity logging

  • OpenAI-compatible AI endpoint support, including local Ollama

  • Responsive dashboard UI

  • Environment configuration and README setup instructions

Run it with:

Shell
cp .env.example .env
npm install
npm run dev

Configure the Discord credentials in .env, then open:

Plain Text
http://localhost:3000

Server fixes are intentionally non-destructive: NoobyBot generates reviewed repair plans and does not automatically delete channels, ban users, modify permissions, or send messages.

Nooby Noob

wait how do i put it in discord

Kodari AI
KodariSep 7 at 11:32 pm 1

To put NoobyBot in your Discord server:

1. Create the Discord application

  1. Click New Application.

  2. Name it NoobyBot.

  3. Open Bot in the left menu.

  4. Click Add Bot.

  5. Click Reset Token, copy the token, and keep it private.

Never post your bot token publicly.

2. Add the credentials to .env

In the NoobyBot project, copy the example file:

Shell
cp .env.example .env

Then fill in:

Env
DISCORD_TOKEN=your_bot_token
DISCORD_CLIENT_ID=your_application_client_id
DISCORD_CLIENT_SECRET=your_client_secret
DISCORD_REDIRECT_URI=http://localhost:3000/auth/discord/callback

You can find:

  • DISCORD_CLIENT_ID: General Information → Application ID

  • DISCORD_CLIENT_SECRET: OAuth2 → General → Client Secret

  • DISCORD_TOKEN: Bot → Token

3. Add the OAuth redirect URL

In OAuth2 → General, add this redirect URL exactly:

Plain Text
http://localhost:3000/auth/discord/callback

Click Save Changes.

4. Start NoobyBot

Inside the project folder, run:

Shell
npm install
npm run dev

You should see the bot connect in the terminal.

5. Invite the bot

Open the website:

Plain Text
http://localhost:3000

Click Sign in with Discord, select a server where you have permission to manage it, and choose Install/Invite NoobyBot.

Alternatively, use this URL directly, replacing YOUR_CLIENT_ID:

Plain Text
https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&scope=bot%20applications.commands&permissions=3072

Choose your server and click Authorize.

6. Test it

In your Discord server, type:

Plain Text
/ask

You should also see commands such as:

Plain Text
/server-status
/fix
/image
/video
/game

The terminal running npm run dev must stay open. If you close it, the bot goes offline. Slash commands may take a short time to appear after the bot connects.

Nooby Noob

can you tell me in kid words

Kodari AI
KodariSep 7 at 11:34 pm 1

Think of NoobyBot like a little robot friend:

  1. Make the robot

  2. Give the robot its secret key

    • On the Bot page, click Reset Token.

    • Copy the token.

    • Keep it secret—like a password. Never send it to anyone.

  3. Put the secret in the project

    • Open the NoobyBot folder.

    • Make a copy of .env.example and name the copy .env.

    • Open .env and put the token here:

Env
DISCORD_TOKEN=put_the_secret_token_here

You also need to fill in the Discord application ID and secret.

  1. Turn the robot on Open a terminal inside the NoobyBot folder and type:

Shell
npm install
npm run dev

Keep that window open. Closing it turns the bot off.

  1. Invite it to your server

    • In the Developer Portal, go to OAuth2.

    • Create an invite link with:

      • bot

      • applications.commands

    • Open the link.

    • Pick your Discord server.

    • Click Authorize.

  2. Talk to it In your Discord server, type:

Plain Text
/ask

You can then ask NoobyBot questions.

You must be the server owner or have permission to add bots.

Nooby Noob

how do i open the noobybot folder

Kodari AI
KodariSep 7 at 11:36 pm 1

On Windows

  1. Find the NoobyBot folder where you saved it.

  2. Double-click the folder to open it.

  3. You should see files like:

    • package.json

    • .env.example

    • a folder named src

To open a command window inside it:

  1. Open the NoobyBot folder.

  2. Click the empty space at the top where the folder path is shown.

  3. Type:

Plain Text
cmd
  1. Press Enter.

A black window will open in the correct folder. Then type:

Shell
npm install
npm run dev

If you use VS Code

  1. Open VS Code.

  2. Click File → Open Folder.

  3. Choose the NoobyBot folder.

  4. Click Select Folder.

  5. Open Terminal → New Terminal.

  6. Type:

Shell
npm install
npm run dev

If you cannot find the folder, look in your Downloads folder or ask the person/program that gave you NoobyBot where it was saved.

Nooby Noob

wait the place where i made the bot

Kodari AI
KodariSep 7 at 11:38 pm 1

Yes—the place where you made the Discord bot is the Discord Developer Portal.

But that website only makes the bot’s Discord account. It does not run NoobyBot’s code.

You need two places:

  • Discord Developer Portal: make the bot and get its secret key.

  • NoobyBot folder: contains files like package.json and src; this is where you run the bot.

If you only see the Discord Developer Portal and do not have a NoobyBot folder, you need to download or open the project files first. The project folder is not inside Discord.

Once you have the folder, open it with VS Code, then choose:

Terminal → New Terminal

and type:

Shell
npm install
npm run dev

Keep that window open, because it keeps the bot online.

Nooby Noob

i don't see the folder

Kodari AI
KodariSep 7 at 11:39 pm 1

That’s okay. The NoobyBot folder is not inside Discord.

The bot files were made in this project chat, but they are not automatically saved on your computer. You need to download the project first.

Try this:

  1. Look near the project files for a Download, Export, or Download ZIP button.

  2. Click it.

  3. Save the file.

  4. Open your Downloads folder.

  5. Double-click the downloaded ZIP file.

  6. Click Extract All.

  7. Open the extracted folder. That is the NoobyBot folder.

You should see files like:

Plain Text
package.json
src
public
.env.example

If you do not see a Download or Export button, tell me whether you are using a computer, Chromebook, iPhone, or Android phone, and I’ll give you the exact steps.

Nooby Noob

tell me where it is like say its in the bot tab or etc tell me

Kodari AI
KodariSep 7 at 11:40 pm 1

The NoobyBot folder is not in the “Bot” tab.

In the Discord Developer Portal:

  • General Information = app ID

  • Bot = bot token and bot settings

  • OAuth2 = invite link

  • No folder = the code files are not stored there

The NoobyBot folder should be on your computer, usually in:

Plain Text
Downloads

or wherever you downloaded/extracted it.

If you never downloaded the project, then the folder does not exist on your computer yet. The Discord website only created the bot’s account—it did not create the NoobyBot code folder.

Nooby Noob

so where do i go

Kodari AI
KodariSep 7 at 11:41 pm 1

Go to your computer’s Downloads folder, not Discord.

  1. Open File Explorer (the yellow folder icon).

  2. Click Downloads on the left.

  3. Look for a folder or ZIP file named NoobyBot.

If you do not see NoobyBot there, the code has not been downloaded to your computer yet. The Discord Developer Portal cannot give you the folder.

You need to find a Download/Export project button in the place where the NoobyBot code was created. After downloading it, it will usually appear in Downloads.

Nooby Noob

i got the code it is <redacted>

Kodari AI
KodariSep 7 at 11:41 pm 1

That is not the code—it is your bot’s secret password (token). You posted it publicly, so it is no longer safe.

Do this now:

  1. Go to the Discord Developer Portal.

  2. Click your bot application.

  3. Click Bot on the left.

  4. Find Token.

  5. Click Reset Token.

  6. Confirm, then copy the new token.

  7. Put it in your NoobyBot .env file:

Env
DISCORD_TOKEN=your_new_token_here

Do not send the new token here or to anyone. The old token must not be used anymore.

Kodari can make mistakes. Review important code before using.
Files
public
src
.gitignore
package.json
README.md
tsconfig.json
Code
14 812
src/bot.ts
import {
  Client,
  Events,
  GatewayIntentBits,
  REST,
  Routes,
  SlashCommandBuilder,
  type ChatInputCommandInteraction,
} from "discord.js";
import { config } from "./config";
import { AiService } from "./ai";
import { JsonStore } from "./storage";
import { formatStatus, getServerStatus, makeFixPlan } from "./server-tools";

const commands = [
  new SlashCommandBuilder()
    .setName("ask")
    .setDescription("Ask NoobyBot a question")
    .addStringOption((option) =>
      option.setName("question").setDescription("Your question").setRequired(true),
    ),
  new SlashCommandBuilder()
    .setName("server-status")
    .setDescription("Show a read-only server overview"),
  new SlashCommandBuilder()
    .setName("fix")
    .setDescription("Create a safe server repair plan")
    .addStringOption((option) =>
      option.setName("issue").setDescription("What is going wrong?").setRequired(true),
    ),
  new SlashCommandBuilder()
    .setName("image")
    .setDescription("Generate an image from a prompt")
    .addStringOption((option) =>
      option.setName("prompt").setDescription("Describe the image").setRequired(true),
    ),
  new SlashCommandBuilder()
    .setName("video")
    .setDescription("Generate a video from a prompt")
    .addStringOption((option) =>
      option.setName("prompt").setDescription("Describe the video").setRequired(true),
    ),
  new SlashCommandBuilder()
    .setName("game")
    .setDescription("Create a small browser game")
    .addStringOption((option) =>
      option.setName("prompt").setDescription("Describe the game").setRequired(true),
    ),
].map((command) => command.toJSON());

function limit(text: string, max = 1900): string {
  return text.length > max ? `${text.slice(0, max - 3)}...` : text;
}

async function handleInteraction(
  interaction: ChatInputCommandInteraction,
  ai: AiService,
  store: JsonStore,
): Promise<void> {
  const name = interaction.commandName;
  const userId = interaction.user.id;
  store.log({ source: "discord", userId, action: name, input: JSON.stringify(interaction.options.data) });

  if (name === "server-status") {
    if (!interaction.guildId) {
      await interaction.reply({ content: "This command must be used inside a server.", ephemeral: true });
      return;
    }
    const status = await getServerStatus(interaction.client, interaction.guildId);
    await interaction.reply(`**${status.name}**\n${formatStatus(status)}`);
    return;
  }

  await interaction.deferReply();
  if (name === "ask") {
    const question = interaction.options.getString("question", true);
    const context = interaction.guildId
      ? formatStatus(await getServerStatus(interaction.client, interaction.guildId))
      : "No Discord server context is available.";
    await interaction.editReply(limit(await ai.ask(question, context)));
    return;
  }

  if (name === "fix") {
    if (!interaction.guildId) {
      await interaction.editReply("Use /fix inside the server you want to troubleshoot.");
      return;
    }
    const issue = interaction.options.getString("issue", true);
    const status = await getServerStatus(interaction.client, interaction.guildId);
    const plan = makeFixPlan(issue, status);
    await interaction.editReply(limit(`**${plan.title}**\nIssue: ${plan.issue}\n\n${plan.actions.map((action, index) => `${index + 1}. ${action}`).join("\n")}\n\n_${plan.safety}_`));
    return;
  }

  if (name === "image" || name === "video") {
    const prompt = interaction.options.getString("prompt", true);
    const result = name === "image" ? await ai.image(prompt) : await ai.video(prompt);
    await interaction.editReply(result.url ? `${result.text ?? "Generated media:"}\n${result.url}` : result.text ?? "No media was returned.");
    return;
  }

  if (name === "game") {
    const prompt = interaction.options.getString("prompt", true);
    await interaction.editReply(limit(await ai.game(prompt)));
  }
}

export function createBot(ai: AiService, store: JsonStore): Client {
  const client = new Client({ intents: [GatewayIntentBits.Guilds] });

  client.once(Events.ClientReady, async (readyClient) => {
    const rest = new REST({ version: "10" }).setToken(config.discordToken);
    await rest.put(Routes.applicationCommands(readyClient.user.id), { body: commands });
    console.log(`NoobyBot connected as ${readyClient.user.tag}`);
  });

  client.on(Events.InteractionCreate, async (interaction) => {
    if (!interaction.isChatInputCommand()) return;
    try {
      await handleInteraction(interaction, ai, store);
    } catch (error) {
      console.error(error);
      const message = "Something went wrong while handling that request.";
      if (interaction.deferred || interaction.replied) {
        await interaction.editReply(message).catch(() => undefined);
      } else {
        await interaction.reply({ content: message, ephemeral: true }).catch(() => undefined);
      }
    }
  });

  return client;
}