https://github.com/marknefedov/kotlin-discord-bot
Kotlin discord bot for audio recording
https://github.com/marknefedov/kotlin-discord-bot
audio discord discord-bot java kotlin voice-recording
Last synced: over 1 year ago
JSON representation
Kotlin discord bot for audio recording
- Host: GitHub
- URL: https://github.com/marknefedov/kotlin-discord-bot
- Owner: marknefedov
- License: mit
- Archived: true
- Created: 2020-03-19T19:20:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-11-20T18:01:07.000Z (over 4 years ago)
- Last Synced: 2025-02-22T20:31:14.842Z (over 1 year ago)
- Topics: audio, discord, discord-bot, java, kotlin, voice-recording
- Language: Kotlin
- Homepage:
- Size: 132 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Voice record Discord bot in Kotlin
[](https://github.com/markusgod/Simple-Discord-bot) [](https://www.codacy.com/manual/markusgod/Kotlin-Discord-bot?utm_source=github.com&utm_medium=referral&utm_content=markusgod/Kotlin-Discord-bot&utm_campaign=Badge_Grade)
A simple bot for recording voice chats.
For simple recording:
```text
::record | ::record 10
::stop
```
After recording bot will send an audio file to the chat it was started from.

To send recording in pm use
`::record @Someone` or `::record 300 @Someone`, bot will send record to @Someone's private messages.
"Instant replay" functions much like Nvidia's ShadowPlay instant replays (that is where name come from). Bot is constantly recording audio from a channel to a buffer and will send current buffer content in a file when you request it.
Use `::irecord` to start recording and `::ireplay` to replay buffer, and `::istop` to kick it.
Configuration using environment variables:
|Variable|Description|
|:---:|---|
|BOT_TOKEN|Authentication token from discord developer portal|
|CLIENT_ID|Client ID from discord developer portal or bot user id|
|RECORD_LENGTH|Maximum record length in milliseconds. Keep this low on servers with little RAM. Default 5 minutes|
|TOPGG_TOKEN|top.gg bot token for statistics. Optional|