Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.06 KB

README.md

File metadata and controls

30 lines (22 loc) · 1.06 KB

Clipper

clipper

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.

setup

  1. create .cargo folder
  2. create config.toml inside .cargo
  3. 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"
  1. Go to https://discord.com/developers/applications and create an application
  2. add to server
  3. create "#clips" text channel
  4. copy server id
  5. run cargo run
    (if your on linux you might need to install libopus-dev)
  6. go to http://localhost:{PORT}/clip/{server id}
  7. when updating the config keep in mind that you need fo rebuild since this the env is pulled from the file by the compiler

custom clip-duration

optionally you can add DURATION="MS" your config.toml to adjust the clip-size. Replace MS with your duration in milliseconds.