diff --git a/package-lock.json b/package-lock.json index 18dd09a..dea8f04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "denim_3001", - "version": "3001.48.0", + "version": "3001.48.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "denim_3001", - "version": "3001.48.0", + "version": "3001.48.1", "license": "ISC", "dependencies": { "@discordjs/voice": "^0.15.0", diff --git a/package.json b/package.json index a77c1b4..f0e9692 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "denim_3001", - "version": "3001.48.0", + "version": "3001.48.1", "description": "Toto je velmi kvalitní bot.", "repository": { "url": "https://github.com/Histmy/Denim-Bot/" diff --git a/src/modules/vojs.ts b/src/modules/vojs.ts index 9cff9ab..13fba69 100644 --- a/src/modules/vojs.ts +++ b/src/modules/vojs.ts @@ -8,6 +8,7 @@ import { canAnounceTime, handlePrevVoice, joinVoice, log, play, rand } from "../ const timeouty: SRecord = {}; const muty: string[] = []; +let neodposlouchavani = true; const vypocitatCas = (guild: string, conn: VoiceConnection) => { const c = new Date(); @@ -195,6 +196,11 @@ const exp: Modul = { const zvuk = ["a_jednou_sel_a_tak_moc_sel", "a_sedel", "a_sel_z_vaku_a_vykopal_marese", "a_si_rekl", "a_si_vsimnul", "u_zamestnaly_na_praxi"][rand(7)]; const client: CClient = module.exports.client; return playAndFukOff(mes, (client.komandy["vtip"].run as Function)(), `zvuky/ftipy/toz_sims${zvuk}.mp3`); + }, + + zmenneodposlouchavani: () => { + neodposlouchavani = !neodposlouchavani; + return `Funkce NEOTPOSLOUCHAAVEJJJ!!§!§ je ${neodposlouchavani ? "nastartovana" : "chcipnuta"}`; } }, @@ -204,7 +210,7 @@ const exp: Modul = { const conn = getVoiceConnection(aft.guild.id); if (!aft.channel || !conn || aft.member?.user.id == aft.client.user?.id) return; - if (aft.selfMute && !aft.deaf) { + if (neodposlouchavani && aft.selfMute && !aft.deaf) { play(conn, { name: "./zvuky/neodposlouchavej.ogg", volume: 0.38 }) .then(() => { if (!aft.selfMute) return;