format all file

This commit is contained in:
arthur
2024-06-24 00:32:05 +02:00
parent 4b9530443b
commit 6e5f371801
82 changed files with 9299 additions and 5804 deletions
+18 -12
View File
@@ -1,12 +1,18 @@
const { Events } = require('discord.js');
const db = require('../fonctions/database.js');
module.exports = {
name: Events.GuildCreate,
async execute(guild) {
db.run(`INSERT OR IGNORE INTO config (guildId, name, value) VALUES (?, ?, ?)`, [guild.id, 'prefix', '&']);
guild.members.cache.forEach(member => {
db.run(`INSERT OR IGNORE INTO users (guildId, userId) VALUES (?, ?)`, [guild.id, member.id]);
});
},
};
const { Events } = require("discord.js");
const db = require("../fonctions/database.js");
module.exports = {
name: Events.GuildCreate,
async execute(guild) {
db.run(
`INSERT OR IGNORE INTO config (guildId, name, value) VALUES (?, ?, ?)`,
[guild.id, "prefix", "&"],
);
guild.members.cache.forEach((member) => {
db.run(`INSERT OR IGNORE INTO users (guildId, userId) VALUES (?, ?)`, [
guild.id,
member.id,
]);
});
},
};