A discord bot written in Golang
Find a file
2023-12-27 10:52:24 -07:00
.github/workflows Finished! 2023-12-27 10:52:24 -07:00
.DS_Store Finished! 2023-12-27 10:52:24 -07:00
.env.example So far so good! 2023-12-26 18:39:21 -07:00
.gitignore Finished! 2023-12-27 10:52:24 -07:00
Dockerfile Finished! 2023-12-27 10:52:24 -07:00
fly.toml updated toml 2023-12-06 14:53:50 -07:00
go.mod Finished! 2023-12-27 10:52:24 -07:00
go.sum Finished! 2023-12-27 10:52:24 -07:00
main.go Finished! 2023-12-27 10:52:24 -07:00
README.md fancytts 2023-11-12 22:18:13 -07: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