diff --git a/README.md b/README.md index 1ca130c..b4056ee 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # DENIM 3001 ![Denim](https://cdn.discordapp.com/avatars/535915400375042048/d15e39420dcf328a6d8673ab979a67a7.png?size=32) -[![CodeFactor](https://www.codefactor.io/repository/github/histmy/denim-bot/badge?s=0b4e08a7b118b8120c50359e00c6f6f1d4464b53)](https://www.codefactor.io/repository/github/histmy/denim-bot) +[![CodeFactor](https://www.codefactor.io/repository/github/histmy/denim-mirror/badge?s=5c1c9feeb96c427d13b30ba0653cbbc1bb90bcda)](https://www.codefactor.io/repository/github/histmy/denim-mirror) ## First setup 1. Install all packages with the command `npm i` diff --git a/src/modules/muzika.ts b/src/modules/muzika.ts index 9890bb0..eb468e0 100644 --- a/src/modules/muzika.ts +++ b/src/modules/muzika.ts @@ -20,7 +20,7 @@ const guildy = new Map(); const searchScema = array(record(string(), string())); -async function playNext(guildId: string, seek?: number) { +async function playNext(guildId: string) { try { const guilda = guildy.get(guildId)!; const kju = guilda.kju; @@ -162,20 +162,7 @@ const exp: Modul = { } }, - seek: { - DMUnsafe: true, - arg: "na kolikátou sekundu přetočit", - run: (mes, arg) => { - const numero = Number(arg); - if (isNaN(numero)) return "huh?"; - - const kju = guildy.get(mes.guildId!)?.kju; - if (!kju?.length) return "nehraje nic"; - - playNext(mes.guildId!, numero); - mes.react(emouty.d3k); - } - }, + seek: "nu tuto us nefunkuje pac ytdl-core je kokotina", loop: { DMUnsafe: true,