From d001872d08f52e446d9105a74c514b0ed5422a83 Mon Sep 17 00:00:00 2001 From: louhane delforge Date: Fri, 21 Nov 2025 09:33:07 +0100 Subject: [PATCH] test cle --- .gitignore | 2 +- README.md | 16 ++++++++++------ indexTest.js | 27 --------------------------- 3 files changed, 11 insertions(+), 34 deletions(-) delete mode 100644 indexTest.js diff --git a/.gitignore b/.gitignore index b5714e7..3248d95 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ /node_modules .env -~/.gitconfig +/~ db.json diff --git a/README.md b/README.md index bd9bced..c0186de 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,18 @@ # genius-troll + réponses troll et fun facts -to invite : https://discord.com/oauth2/authorize?client_id=1441128583178227883&permissions=8&integration_type=0&scope=bot+applications.commands +[to invite](https://discord.com/oauth2/authorize?client_id=1441128583178227883&permissions=8&integration_type=0&scope=bot+applications.commands) -# dépendances -bun add fr-compromise conjugation-fr discord.js +# version - -# version - 0.1.1 : initialisation et création du code - 0.2.1 : ajout de modules de détection - 0.2.2 : rajout de nouveaux comportement (détection d'un feur par quelqu'un d'autre, ...) - 0.3.1 : ajout de db (retention de setting) et maj des dependences -- 1.0.0 : ca marche \ No newline at end of file +- 1.0.0 : ca marche via vs code +- 1.1.0 : fix sur lxc + +# dependences + +- npm i +- node index.js \ No newline at end of file diff --git a/indexTest.js b/indexTest.js deleted file mode 100644 index ffea581..0000000 --- a/indexTest.js +++ /dev/null @@ -1,27 +0,0 @@ -import 'dotenv/config'; -import { Client, GatewayIntentBits, Options, Events } from 'discord.js'; - -console.log("--- DEBUG START ---"); - -const client = new Client({ - makeCache: Options.cacheWithLimits({ - MessageManager: 0, - }), - intents: [ - GatewayIntentBits.Guilds, - GatewayIntentBits.GuildMessages, - GatewayIntentBits.MessageContent, - ] -}); - -client.on(Events.ClientReady, async () => { - console.log('-----------------------------------'); - console.log(`[SUCCESS] Logged in as ${client.user?.tag}`); - console.log('--- BOT IS READY ---'); - console.log('-----------------------------------'); -}); - -console.log("Token status check: " + (process.env.DISCORD_TOKEN ? "Présent" : "ABSENT")); -console.log("Attempting login..."); - -client.login(process.env.DISCORD_TOKEN); \ No newline at end of file