přesouvání opět zpět, yo
This commit is contained in:
parent
943711f75d
commit
0c2e64cf39
12
package-lock.json
generated
12
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.53.1",
|
"version": "3001.54.0",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.53.1",
|
"version": "3001.54.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/voice": "^0.16.0",
|
"@discordjs/voice": "^0.16.0",
|
||||||
@ -17,7 +17,8 @@
|
|||||||
"opusscript": "^0.1.0",
|
"opusscript": "^0.1.0",
|
||||||
"play-dl": "^1.9.6",
|
"play-dl": "^1.9.6",
|
||||||
"tiny-typed-emitter": "^2.1.0",
|
"tiny-typed-emitter": "^2.1.0",
|
||||||
"tweetnacl": "^1.0.3"
|
"tweetnacl": "^1.0.3",
|
||||||
|
"valibot": "^0.13.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.3",
|
"@types/jest": "^29.5.3",
|
||||||
@ -3985,6 +3986,11 @@
|
|||||||
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",
|
"integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
|
"node_modules/valibot": {
|
||||||
|
"version": "0.13.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/valibot/-/valibot-0.13.1.tgz",
|
||||||
|
"integrity": "sha512-SG2W1RHqE2LShl3p6tyERt6I+G6PQa9ZFVfkyNKXz01HBzL+tBeH5kXw/5AQeAzPJSjI3djVGBl1CyozA1kyBQ=="
|
||||||
|
},
|
||||||
"node_modules/walker": {
|
"node_modules/walker": {
|
||||||
"version": "1.0.8",
|
"version": "1.0.8",
|
||||||
"resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",
|
"resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "denim_3001",
|
"name": "denim_3001",
|
||||||
"version": "3001.53.1",
|
"version": "3001.54.0",
|
||||||
"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/"
|
||||||
@ -22,7 +22,8 @@
|
|||||||
"opusscript": "^0.1.0",
|
"opusscript": "^0.1.0",
|
||||||
"play-dl": "^1.9.6",
|
"play-dl": "^1.9.6",
|
||||||
"tiny-typed-emitter": "^2.1.0",
|
"tiny-typed-emitter": "^2.1.0",
|
||||||
"tweetnacl": "^1.0.3"
|
"tweetnacl": "^1.0.3",
|
||||||
|
"valibot": "^0.13.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^29.5.3",
|
"@types/jest": "^29.5.3",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { AudioPlayer, AudioPlayerState, AudioPlayerStatus, AudioResource, createAudioPlayer, createAudioResource, entersState, joinVoiceChannel, StreamType, VoiceConnection, VoiceConnectionStatus } from "@discordjs/voice";
|
import { AudioPlayer, AudioPlayerState, AudioPlayerStatus, AudioResource, createAudioPlayer, createAudioResource, entersState, joinVoiceChannel, StreamType, VoiceConnection, VoiceConnectionStatus } from "@discordjs/voice";
|
||||||
import { Guild } from "discord.js";
|
import { Guild } from "discord.js";
|
||||||
import { log } from "./utils";
|
import { adminLog, log } from "./utils";
|
||||||
import { Readable } from "node:stream";
|
import { Readable } from "node:stream";
|
||||||
|
|
||||||
export type Hratelny = string | Readable | {
|
export type Hratelny = string | Readable | {
|
||||||
@ -49,22 +49,22 @@ export const novejJoin = (guild: Guild, channelId: string) => new Promise<boolea
|
|||||||
else {
|
else {
|
||||||
prev = con.joinConfig.channelId!;
|
prev = con.joinConfig.channelId!;
|
||||||
if (!prev) {
|
if (!prev) {
|
||||||
log(new Error("fakt tam nic neni, jak je to mozny?"));
|
adminLog(guild.client, "fakt tam nic neni, jak je to mozny?");
|
||||||
prev = false;
|
prev = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tuto prostě nefunguje, řekl Discord. Sráč jeden. Ale já se jen tak nevzdám. Jen počkej, ty čuráku.
|
|
||||||
// Přesunout se
|
// Přesunout se
|
||||||
const state = guild.voiceStates.cache.get(guild.client.user!.id);
|
const state = guild.voiceStates.cache.get(guild.client.user!.id);
|
||||||
if (state) {
|
if (state) {
|
||||||
|
try {
|
||||||
await state.setChannel(channelId);
|
await state.setChannel(channelId);
|
||||||
resolve(prev);
|
resolve(prev);
|
||||||
return;
|
return;
|
||||||
|
} catch { }
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
// Z nějakýho neznámího důvodu se nepodařilo přepojit, prostě vytvoříme nový připojení
|
// Z nějakýho neznámýho důvodu se nepodařilo přepojit, prostě vytvoříme nový připojení
|
||||||
// log(new Error("jo tak tuto nechapu"));
|
log(new Error("toxic discord back at it, prej"));
|
||||||
novejLeave(guildId);
|
novejLeave(guildId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user