skick1234 / DisTube

A powerful Discord.js module for simplifying music commands and effortless playback of various sources with integrated audio filters.
https://distube.js.org
MIT License
423 stars 94 forks source link

Sending two messages at the same time #175

Closed BobLearning closed 3 years ago

BobLearning commented 3 years ago

Please describe your problem in as much detail as possible:

    .on("playSong", (message, queue, song) => message.channel.send(
        `Playing \`${song.name}\` - \`${song.formattedDuration}\`\nRequested by: \`${song.user.tag}\``
    ))
    .on("addSong", (message, queue, song) => message.channel.send(
      `Added \${song.name}\` - \`${song.formattedDuration}\` to the queue by \`${song.user.tag}\``
  ))

when ever a song is added to the queue or it is playing it will add one more message each time it plays Further information: for example adds song to queue bot : added to queue adds song to queue again bot : added to queue bot : added to queue

and so on and every time it is increased by one

LackyPal commented 3 years ago

I highly recommend to use distube@v3-beta with discord.js@v13

BobLearning commented 3 years ago

this is discord.js@12

skick1234 commented 3 years ago

Because the listener is run multiple times