tpc muzika vole

This commit is contained in:
Histmy 2022-11-19 02:24:14 +01:00
parent aa33c5b0c4
commit 9b6d697fe2
4 changed files with 14 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.43.1", "version": "3001.43.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.43.1", "version": "3001.43.2",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@discordjs/voice": "^0.13.0", "@discordjs/voice": "^0.13.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.43.1", "version": "3001.43.2",
"description": "Toto je velmi kvalitní bot.", "description": "Toto je velmi kvalitní bot.",
"repository": { "repository": {
"url": "https://github.com/Histmy/Denim-Bot/" "url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -179,6 +179,17 @@ const exp: Modul = {
await play(conn, { name: "zvuky/pocasi/outro.mp3", volume: 30 }); await play(conn, { name: "zvuky/pocasi/outro.mp3", volume: 30 });
handlePrevVoice(mes.guild!, prev); handlePrevVoice(mes.guild!, prev);
} }
},
auto: {
run: async mes => {
const channel = mes.member?.voice.channel;
if (!channel) return "vžum";
const { conn, prev } = await joinVoice(channel);
await play(conn, "zvuky/auto.ogg");
handlePrevVoice(mes.guild!, prev);
}
} }
}, },

BIN
zvuky/auto.ogg Normal file

Binary file not shown.