A discord bot written in Golang
Find a file
Atridad Lahiji b438a9be99 timeout
2023-11-26 02:44:03 -07:00
.github/workflows Add auto deploy 2023-10-17 18:20:22 -03:00
src timeout 2023-11-26 02:44:03 -07:00
.dockerignore Fly 2023-10-17 14:56:49 -03:00
.gitignore First iteration! 2023-06-04 20:06:16 -06:00
.npmrc PLSPLSPLS 2023-07-21 22:55:20 -06:00
.prettierignore First iteration! 2023-06-04 20:06:16 -06:00
.sapphirerc.json First iteration! 2023-06-04 20:06:16 -06:00
Dockerfile Fly 2023-10-17 14:56:49 -03:00
fly.toml swap 2023-11-19 17:08:26 -07:00
package.json Commands updates 2023-11-26 02:38:31 -07:00
pnpm-lock.yaml Commands updates 2023-11-26 02:38:31 -07:00
README.md fancytts 2023-11-12 22:18:13 -07:00
tsconfig.json I hate that this is needed... sapphire... fix your shit 2023-09-07 00:18:03 -06:00

HimBot

A discord bot written in Typescript.

It's dangerous to go alone! Take this!

  • Install Nodejs 18 or later here (required)
  • The pnpm package manager npm i -g pnpm (recommended)

Structure

Commands and Listeners are all stored in named files within the src/commands and src/listeners directories respectively.

Running Locally

  • Copy .env.example and rename to .env
  • Create a Discord Bot with all gateway permissions enabled
  • Generate a token for this discord bot and paste it in the .env for DISCORD_TOKEN
  • Generate and provide an OpenAPI token and paste it in the .env for OPENAI_API_KEY
  • Run pnpm dev to run locally

Adding the bot to a server

Use the following link (replacing DISCORD_CLIENT_ID with your own bot's client ID of course...) to add your bot: https://discord.com/oauth2/authorize?client_id=DISCORD_CLIENT_ID&scope=bot&permissions=8