Taterubot
Record audio messages and share them with your friends without leaving Discord! Whatsapp style
Taterubot
is a Discord bot that allows recording voice messages and sending them on your server.
Showcase
How to use it
- Enter on the chosen channel. The bot will enter automatically.
- Start speaking.
- When you are done, leave the channel.
- The bot will upload your voice message on the general channel.
Requirements
- Discord application bot: create yours here.
- ffmepg installed in the host machine. It is needed to convert and manipulate audio files.
- Docker and docker-compose (only needed if running locally)
Taterubot
on your own machine (minimal setup)
Run - Rename .env.example to .env
- Put your discord token on BOT_TOKEN env variable.
- (Optionally) change LANGUAGE to
🇬🇧 or🇪🇸 - Run go mod download
- Run make local-infra
- Run go run main.go
Configuration settings (advanced setup)
You can modify the config.json file and adapt it to your needs.
- CHANNEL_NAME: Name of the voice channel where you want your audios to get recorded.
- BASE_PATH: Base path where the audio files are stored temporarily.
- CLOUDAMQP_URL: Url that points to your AMQP broker.
- DATABASE_URL: Url that points to your Postgres DB.
Guide: Deploy it in heroku for free
- Create a worker dyno in heroku.
- Add CloudAMPQ addon
- Add Heroku postgres
- Set correct config vars for the bot token, AMPQ, postgres...
- Add ffmepg buildpack. howto
- Deploy your code.
Known bugs and limitations
- Cant really scale horizontally; There is an internal state using channels to manage the recording, cant handle the start and end of recording in different instances.
- Not meant for unstable connections: if you are outside with the phone and trying to record an audio and you have low signal, you most likely will lose that audio.
Thanks to
WIP