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
.
-
go install github.com/azekeil/grec/cmd/grec
(needs at least go 1.16 forembed
) -
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
-
Put your bot token in a file named
config.yaml
like so:token: abc123
grec
searches forconfig.yaml
in the current working directory, then~/.config/grec/
-
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?)
In a text channel grec
has permissions to read and write messages, enter !grec
. You should see: