clip-bot that allows you to clip the last 30 seconds of audio in a voicechat. It automatically joins voicechats. Works on multiple servers. Use server-deathen to disable the bot.
- create .cargo folder
- create config.toml inside .cargo
- write the following configuration the config.toml replacing DISCORD_BOT_TOKEN with your bot token. And replacing SERVER_PORT with a free port. (see config.toml.example)
[env]
TOKEN = "DISCORD_BOT_TOKEN"
PORT = "SERVER_PORT"
- Go to https://discord.com/developers/applications and create an application
- add to server
- create "#clips" text channel
- copy server id
- run
cargo run
(if your on linux you might need to install libopus-dev) - go to http://localhost:{PORT}/clip/{server id}
- when updating the config keep in mind that you need fo rebuild since this the env is pulled from the file by the compiler
optionally you can add DURATION="MS" your config.toml to adjust the clip-size. Replace MS with your duration in milliseconds.