Skip to content
This repository was archived by the owner on Jun 21, 2024. It is now read-only.

Commit 7dcba4c

Browse files
author
Mark Nefedov
committed
::istop command.
1 parent 3597058 commit 7dcba4c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To send recording in pm use
1818

1919
"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.
2020

21-
Use `::irecord` to start recording and `::ireplay` to replay buffer.
21+
Use `::irecord` to start recording and `::ireplay` to replay buffer, and `::istop` to kick it.
2222

2323
Configuration using environment variables:
2424

src/main/kotlin/InstantReplayCommandHandler.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ class InstantReplayCommandHandler : ListenerAdapter() {
5050
return
5151
}
5252
}
53+
event.message.contentRaw == "::istop" ->{
54+
event.guild.audioManager.closeAudioConnection()
55+
}
5356
}
5457
}
5558

0 commit comments

Comments
 (0)