mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-26 07:04:58 +05:00
prevent spam
This commit is contained in:
parent
4562b256fc
commit
8edeb67900
1 changed files with 6 additions and 1 deletions
|
@ -62,7 +62,12 @@ class JaBa extends Client {
|
|||
});
|
||||
|
||||
this.player
|
||||
.on("playSong", (queue, song) => queue.textChannel.send(this.translate("music/play:NOW_PLAYING", { songName: song.name })))
|
||||
.on("playSong", (queue, song) => {
|
||||
const m = await queue.textChannel.send(this.translate("music/play:NOW_PLAYING", { songName: song.name }))
|
||||
setTimeout(() => {
|
||||
m.delete();
|
||||
}, 5000);
|
||||
})
|
||||
.on("addSong", (queue, song) => queue.textChannel.send(this.translate("music/play:ADDED_QUEUE", { songName: song.name })))
|
||||
.on("addList", (queue, playlist) => queue.textChannel.send(this.translate("music/play:ADDED_QUEUE_COUNT", { songCount: playlist.songs.length })))
|
||||
.on("searchResult", (message, result) => {
|
||||
|
|
Loading…
Reference in a new issue