Skip to content

Commit

Permalink
fix(play): revert package
Browse files Browse the repository at this point in the history
  • Loading branch information
eritislami committed Jan 21, 2021
1 parent d2b1e43 commit d081b58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/play.js
@@ -1,4 +1,4 @@
const ytdl = require("erit-ytdl");
const ytdl = require("ytdl-core-discord");
const scdl = require("soundcloud-downloader").default;
const { canModifyQueue, STAY_TIME, LOCALE } = require("../util/EvobotUtil");
const i18n = require("i18n");
Expand Down Expand Up @@ -147,7 +147,7 @@ module.exports = {
case "馃攭":
reaction.users.remove(user).catch(console.error);
if (queue.volume == 0) return;
if (!canModifyQueue(member) ) return i18n.__("common.errorNotChannel");
if (!canModifyQueue(member)) return i18n.__("common.errorNotChannel");
if (queue.volume - 10 <= 0) queue.volume = 0;
else queue.volume = queue.volume - 10;
queue.connection.dispatcher.setVolumeLogarithmic(queue.volume / 100);
Expand Down Expand Up @@ -175,6 +175,7 @@ module.exports = {
queue.textChannel
.send(
i18n.__mf("play.loopSong", {
author: user,
loop: queue.loop ? i18n.__("common.on") : i18n.__("common.off")
})
)
Expand Down

0 comments on commit d081b58

Please sign in to comment.