A discord bot written in Golang
Find a file
2024-03-06 00:11:30 -06:00
.github/workflows Finished! 2023-12-27 10:52:24 -07:00
command Replicate 2024-02-24 01:53:10 -07:00
lib Remove unused scheduler in ReplicateImageGeneration function 2024-03-06 00:11:30 -06:00
.DS_Store Finished! 2023-12-27 10:52:24 -07:00
.env.example Console logs and region var 2024-01-20 01:39:52 -07:00
.gitignore Finished! 2023-12-27 10:52:24 -07:00
Dockerfile Update Go build flags in Dockerfile 2024-02-09 12:54:10 -07:00
fly.toml updated toml 2023-12-06 14:53:50 -07:00
go.mod Update dependencies and modify ReplicatePromptPrefix 2024-03-05 01:28:56 -06:00
go.sum Update dependencies and modify ReplicatePromptPrefix 2024-03-05 01:28:56 -06:00
main.go Update main.go 2024-02-23 23:08:42 -07:00
README.md Remove OpenAI 2024-01-10 00:35:23 -07:00

HimBot

A discord bot written in Go.

It's dangerous to go alone! Take this!

  • Install Go 1.21.5 or higher (required)

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 Replicate token and paste it in the .env for REPLICATE_API_TOKEN
  • Run go run main.go 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