2019-11-05 15:52:46 +00:00
|
|
|
const db = require("../utils/database.js");
|
2019-09-13 20:02:41 +00:00
|
|
|
const logger = require("../utils/logger.js");
|
|
|
|
|
|
|
|
// run when the bot is added to a guild
|
2021-04-29 21:56:32 +00:00
|
|
|
module.exports = async (client, cluster, ipc, guild) => {
|
2020-11-05 21:40:18 +00:00
|
|
|
logger.log("info", `[GUILD JOIN] ${guild.name} (${guild.id}) added the bot.`);
|
2020-12-18 02:32:19 +00:00
|
|
|
await db.addGuild(guild);
|
2019-09-13 20:02:41 +00:00
|
|
|
};
|