A discord bot written in Golang
Find a file
Atridad Lahiji 98137cc4fd
added ask
2023-06-15 17:20:00 -06:00
src added ask 2023-06-15 17:20:00 -06:00
.gitignore First iteration! 2023-06-04 20:06:16 -06:00
.npmrc First iteration! 2023-06-04 20:06:16 -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
package.json added ask 2023-06-15 17:20:00 -06:00
pnpm-lock.yaml added ask 2023-06-15 17:20:00 -06:00
README.md Update README.md 2023-06-05 23:07:43 -06:00
tsconfig.json First iteration! 2023-06-04 20:06:16 -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
  • 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