Skip to content
/ borik Public

a discord bot, written using discordgo, for ✨ breaking images ✨


Notifications You must be signed in to change notification settings


Repository files navigation


A discord bot, written using discordgo, for ✨ breaking images ✨.

Running the bot

  • Build all dependencies with custom permitted cflags, to build the ImageMagick wrapper:
    CGO_CFLAGS_ALLOW=-Xpreprocessor go build -a
  • Copy .env.dist to .env, and populate it with a token and a prefix
  • go run .


If you have Nix installed and Nix Flakes enabled, this repo provides a Flake to streamline the process of running & developing the bot.

Start by following the .env instructions above, then do one of the following:

Running for usage

If you just want to use Borik and don't intend on working on it yourself, running nix run should be all that is required to compile and start Borik.

For development

If you plan on working on Borik, run the below commands to prepare a dev shell and run Borik in it.

  • Run nix develop
    • This will drop you into a shell with Go & all required dependencies ready to go.
  • Run go run .