New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cocoa-discord/music-module

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cocoa-discord/music-module - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

7

dist/adapters/youtube.js

@@ -0,1 +1,2 @@

import ytdl from "@distube/ytdl-core";
import { createAudioResource } from "@discordjs/voice";

@@ -14,6 +15,4 @@ import * as play from "play-dl";

async getAudioResource() {
const stream = await play.stream(this.video.url);
const resource = createAudioResource(stream.stream, {
inputType: stream.type,
});
const stream = ytdl(this.video.url, { filter: "audioonly" });
const resource = createAudioResource(stream);
return resource;

@@ -20,0 +19,0 @@ }

@@ -1,3 +0,3 @@

export declare const Version = "2.0.0";
export declare const BuildTime = "2024-03-02 01:46:13";
export declare const Version = "3.0.0";
export declare const BuildTime = "2024-10-05 01:02:43";
//# sourceMappingURL=config.g.d.ts.map
/* eslint-disable */
// prettier-ignore
export const Version = "2.0.0";
export const Version = "3.0.0";
// prettier-ignore
export const BuildTime = "2024-03-02 01:46:13";
export const BuildTime = "2024-10-05 01:02:43";
//# sourceMappingURL=config.g.js.map

@@ -0,1 +1,2 @@

// TODO Fix EsLint
import { AudioPlayerStatus, VoiceConnectionStatus, createAudioPlayer, entersState, getVoiceConnection, joinVoiceChannel as libJoinVoiceChannel, } from "@discordjs/voice";

@@ -116,2 +117,3 @@ function createDefaultMusicState() {

state.playingSince = new Date().getTime();
console.log(state);
return await new Promise((resolve, reject) => {

@@ -118,0 +120,0 @@ audioPlayer.on(AudioPlayerStatus.Idle, () => {

@@ -26,3 +26,8 @@ import { __decorate, __param } from "tslib";

console.log(chalk.red(`Error while handling Select Menu: ${err}`));
await interaction.channel?.send(`${err}`).catch(console.error);
if (interaction.channel?.isSendable()) {
await interaction.channel.send(`${err}`).catch(console.error);
}
else {
console.log(chalk.red(`Channel ${interaction.channelId} is not sendable`));
}
}

@@ -29,0 +34,0 @@ }

{
"name": "@cocoa-discord/music-module",
"version": "2.0.0",
"version": "3.0.0",
"description": "discord.js music bot that can be run standalone or as a module for other bots",

@@ -18,30 +18,31 @@ "main": "dist/index.js",

"devDependencies": {
"@discordjs/opus": "0.9.0",
"@leomotors/scripts": "3.1.0",
"@trivago/prettier-plugin-sort-imports": "4.3.0",
"@types/uuid": "9.0.8",
"@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "7.1.0",
"@vitest/coverage-v8": "1.3.1",
"dotenv": "16.4.5",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-prettier": "5.1.3",
"libsodium-wrappers": "0.7.13",
"prettier": "3.2.5",
"rimraf": "5.0.5",
"typedoc": "0.25.9",
"typescript": "5.3.3",
"vitest": "1.3.1"
"@discordjs/opus": "^0.9.0",
"@leomotors/scripts": "^3.1.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^8.8.0",
"@typescript-eslint/parser": "^8.8.0",
"@vitest/coverage-v8": "^2.1.2",
"dotenv": "^16.4.5",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-prettier": "^5.2.1",
"libsodium-wrappers": "^0.7.15",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"typedoc": "^0.26.8",
"typescript": "^5.6.2",
"vitest": "^2.1.2"
},
"dependencies": {
"@discordjs/voice": "^0.16.1",
"@discordjs/voice": "^0.17.0",
"@distube/ytdl-core": "^4.14.4",
"chalk": "^5.3.0",
"discord.js": "^14.14.1",
"microsoft-cognitiveservices-speech-sdk": "^1.35.0",
"discord.js": "^14.16.3",
"microsoft-cognitiveservices-speech-sdk": "^1.40.0",
"play-dl": "^1.9.7",
"tslib": "^2.6.2",
"uuid": "^9.0.1",
"cocoa-discord": "^3.1.0"
"tslib": "^2.7.0",
"uuid": "^10.0.0",
"cocoa-discord": "^3.2.0"
},

@@ -48,0 +49,0 @@ "keywords": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc