mirror of
https://github.com/arthur-pbty/bot-discord-coins.git
synced 2026-06-19 13:46:50 +02:00
format all file
This commit is contained in:
+18
-12
@@ -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,
|
||||
]);
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user