Repository navigation
Releases
Releases · Cut0x/template-discord-bot
@0.0.9
New structure !
From now on the whole structure is based on my module simple-djs-handler!
Here is the index :
const { BotClient } = require('simple-djs-handler');
const { GatewayIntentBits } = require('discord.js');
const config = require("./data/config");
const client = new BotClient({
token: config.bot.token,
slashCommandsEnabled: true,
slashCommandsClientId: config.bot.client_id,
intents: [
GatewayIntentBits.Guilds,
GatewayIntentBits.GuildMembers,
GatewayIntentBits.GuildMessages
],
});
client.start();@0.0.8
@0.0.7
@0.0.6
Ajout des modals
const modals = fs.readdirSync(`./modals/`).filter(file => file.endsWith('.js'));
for (let file of modals) {
let pull = require(`./modals/${file}`);
if (pull.id) {
client.modals.set(pull.id, pull);
console.log(colors.green('[SUCCES]') + " " + `Loaded a ${file} file !`)
} else {
console.log(colors.yellow('[WARNING]') + " " + `Couldn't load a ${file} file !`)
continue;
}
}[......]
@0.0.5
Suppression du module quick.db et better-sqlite3
⚠️ Trop de problème lors de l'installation du modulebetter-sqlite3!
Solution :
Ajout du module db-json !
- const { QuickDB } = require("quick.db");
- const db = new QuickDB();
+ const db = require("./db-json");Full Changelog: New-Version...Final-Version
@0.0.4
Correction de l'erreur de package.json
{
"dependencies": {
"better-sqlite3": "^8.3.0",
"colors": "^1.4.0",
"discord.js": "^14.9.0",
"fs": "^0.0.1-security",
"path": "^0.12.7",
- "quick.db": "^9.1.6", < Virgule en trop
}
}ce qui donne
{
"dependencies": {
"better-sqlite3": "^8.3.0",
"colors": "^1.4.0",
"discord.js": "^14.9.0",
"fs": "^0.0.1-security",
"path": "^0.12.7",
"quick.db": "^9.1.6"
}
}@0.0.3
@0.0.2
@0.0.1
This repository allows you to start your Discord bot without having to do the infrastructure.