test cle
This commit is contained in:
parent
d9b72e1ce9
commit
d001872d08
3 changed files with 11 additions and 34 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
/node_modules
|
/node_modules
|
||||||
.env
|
.env
|
||||||
~/.gitconfig
|
/~
|
||||||
db.json
|
db.json
|
||||||
|
|
|
||||||
16
README.md
16
README.md
|
|
@ -1,14 +1,18 @@
|
||||||
# genius-troll
|
# genius-troll
|
||||||
|
|
||||||
réponses troll et fun facts
|
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
|
# version
|
||||||
bun add fr-compromise conjugation-fr discord.js
|
|
||||||
|
|
||||||
|
|
||||||
# version
|
|
||||||
- 0.1.1 : initialisation et création du code
|
- 0.1.1 : initialisation et création du code
|
||||||
- 0.2.1 : ajout de modules de détection
|
- 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.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
|
- 0.3.1 : ajout de db (retention de setting) et maj des dependences
|
||||||
- 1.0.0 : ca marche
|
- 1.0.0 : ca marche via vs code
|
||||||
|
- 1.1.0 : fix sur lxc
|
||||||
|
|
||||||
|
# dependences
|
||||||
|
|
||||||
|
- npm i
|
||||||
|
- node index.js
|
||||||
27
indexTest.js
27
indexTest.js
|
|
@ -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);
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue