Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

32 lines (24 loc) · 1.1 KB

grec

A self-hosted discord bot written in go to efficiently record voice channels directly to your computer.

Mostly cribbed from examples but some interesting things including parsing help from method comments at runtime using embed.

Setup

  1. go install github.com/azekeil/grec/cmd/grec (needs at least go 1.16 for embed)

  2. Get a discord bot token and add the bot to your discord server(s). For bot permissions, you want:

    Text Permissions

    • Send Messages
    • Read Message History

    Voice Permissions

    • Connect
  3. Put your bot token in a file named config.yaml like so:

    token: abc123

    grec searches for config.yaml in the current working directory, then ~/.config/grec/

  4. Run grec. It should show:

    2021/11/21 17:47:16 Bot is now running.  Press CTRL-C to exit.
    

    And it should join your server you invited it to (you did do that as part of step 2, right?)

Using

In a text channel grec has permissions to read and write messages, enter !grec. You should see: Help