Absolutně stupidní předání logu

This commit is contained in:
Histmy 2024-10-29 10:28:30 +01:00
parent ed4836a0fd
commit 7bd90284a5
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329
3 changed files with 16 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "denim_3001",
"version": "3001.60.3",
"version": "3001.60.4",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "denim_3001",
"version": "3001.60.3",
"version": "3001.60.4",
"license": "ISC",
"dependencies": {
"@discordjs/voice": "^0.17.0",

View File

@ -1,6 +1,6 @@
{
"name": "denim_3001",
"version": "3001.60.3",
"version": "3001.60.4",
"description": "Toto je velmi kvalitní bot.",
"repository": {
"url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -85,6 +85,19 @@ const exp: Modul = {
const sekundy = Number(process.argv[3]);
if (!sekundy) return "aj forgor 💀";
return `naposled jsem jel ${formatCas(sekundy)}`;
},
davajlogec: mes => {
if (mes.author.id != process.env.adminID) return "ty si kdo";
const log = readFileSync("statlog.dlog");
return {
files: [{
attachment: log,
name: "statlog.dlog"
}]
};
}
},