A discord bot written in Golang
Find a file
2023-05-30 17:30:15 -06:00
.vscode Initial commit 2023-05-28 20:20:00 -06:00
examples Better docs 2023-05-30 17:25:47 -06:00
src Better docs 2023-05-30 17:25:47 -06:00
.env.example Initial commit 2023-05-28 20:20:00 -06:00
.gitignore Initial commit 2023-05-28 20:20:00 -06:00
deno.json Better docs 2023-05-30 17:25:47 -06:00
deno.lock Initial commit 2023-05-28 20:20:00 -06:00
deps.ts Initial commit 2023-05-28 20:20:00 -06:00
mod.ts Added a wryna command 2023-05-30 01:13:53 -06:00
README.md Update README.md 2023-05-30 17:30:15 -06:00

HimBot

A discord bot written in Typescript and running on the Deno runtime.

It's dangerous to go alone! Take this!

Structure

Commands and Events are all stored in named files within the src/commands and src/events directories respectively. Usage and example ts files can be found in the examples folder.

To generate a new Command or Event run deno task new:command or deno task new:event 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 BOT_TOKEN
  • Run deno run --allow-all mod.ts to run locally

Adding the bot to a server

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