Skip to content

Commit

Permalink
update dependencies, small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Jul 29, 2023
1 parent 85df886 commit 06e1947
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
"dependencies": {
"@discordjs/opus": "^0.9.0",
"@discordjs/voice": "^0.16.0",
"@distube/soundcloud": "^1.3.2",
"@distube/soundcloud": "^1.3.3",
"@distube/spotify": "^1.5.1",
"@distube/yt-dlp": "^1.1.3",
"@napi-rs/canvas": "^0.1.41",
"@prevter/tavr-media-radio": "^1.0.0",
"@prevter/tavr-media-radio": "^1.1.0",
"body-parser": "^1.20.2",
"cors": "^2.8.5",
"discord.js": "^14.11.0",
"distube": "^4.0.4",
"distube": "^4.0.6",
"ejs": "^3.1.9",
"express": "^4.18.2",
"libsodium-wrappers": "^0.7.11",
"mongodb": "^5.6.0",
"mongodb": "^5.7.0",
"nodemon": "^3.0.1",
"opusscript": "^0.1.0",
"sqlite3": "^5.1.6"
},
"devDependencies": {
"eslint": "^8.45.0"
"eslint": "^8.46.0"
}
}
1 change: 0 additions & 1 deletion src/commands/music/repeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ module.exports = class extends Command {
if (!args[0])
return await message.reply({ embeds: [Command.createErrorEmbed(locale('repeat.no_mode'))] });

console.log(args[0]);
const repeatMode = this.parseMode(args[0]);
if (repeatMode === null)
return await message.reply({ embeds: [Command.createErrorEmbed(locale('repeat.invalid_mode'))] });
Expand Down
6 changes: 4 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ String.prototype.stripTag = function (add_at=false) {
* @param {number} ms The amount of time to sleep in milliseconds
* @returns {Promise<void>} A promise that resolves after the specified amount of time
*/
export async function sleep(ms) {
async function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
}

module.exports = { sleep }

0 comments on commit 06e1947

Please sign in to comment.