Seek command not working due to ytdl-core issue

This commit is contained in:
Histmy 2024-06-27 20:14:29 +02:00
parent 8f9adf2e1b
commit b492c8d478
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329
2 changed files with 3 additions and 16 deletions

View File

@ -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`

View File

@ -20,7 +20,7 @@ const guildy = new Map<string, { kju: QueueItem[]; loop: boolean; }>();
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,