3001.42.3

Bot will now install only necessary dependencies

if you change pfp bot will ask you to sign in to deadfish.cz shits
This commit is contained in:
Histmy 2022-10-15 12:24:45 +02:00
parent e73c15ae23
commit 19a411aca4
4 changed files with 16 additions and 8 deletions

4
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "denim_3001", "name": "denim_3001",
"version": "3001.42.2", "version": "3001.42.3",
"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

@ -1,7 +1,7 @@
// Komandy nebo handelery který se nikam jinam nehodí // Komandy nebo handelery který se nikam jinam nehodí
import { getVoiceConnections } from "@discordjs/voice"; import { getVoiceConnections } from "@discordjs/voice";
import { Client, Message } from "discord.js"; import { APIEmbed, Client, Message, User } from "discord.js";
import { emouty } from "../utils/emotes"; import { emouty } from "../utils/emotes";
import { createServer } from "http"; import { createServer } from "http";
import { Modul } from "../utils/types"; import { Modul } from "../utils/types";
@ -95,6 +95,14 @@ const exp: Modul = {
res.end("neco se posralo"); res.end("neco se posralo");
}); });
}).listen(1298); }).listen(1298);
},
on_userUpdate: (bef: User, aft: User) => {
if (bef.avatar == aft.avatar) return;
aft.createDM().then(ch => {
ch.send("cus bracho vydim ze sis zmenim profilofku na dalsi mrdku estli chces abi se ukazovala na na v3ech sr4kach kterz sou na dedfis.cy tak se tam prosymte prihlas haby se mohla zmnenit syk");
});
} }
}; };

View File

@ -6,8 +6,8 @@ do
echo stahuju update echo stahuju update
git stash git stash
git pull git pull
npm i npm i --omit=dev
tsc tsc >/dev/null
unset $neco unset $neco
else else
echo exit code byl $? echo exit code byl $?
@ -15,9 +15,9 @@ do
neco=$(($novejcas-$cas)) neco=$(($novejcas-$cas))
if (($cas+86400<$novejcas)) if (($cas+86400<$novejcas))
then then
echo Pošlo to, let\'s restart echo Poslo to, let\'s restart
else else
echo Pošlo to absolutně, seru na to echo Poslo to absolutne, seru na to
break break
fi fi
fi fi