mrmBot-Matrix/events/guildCreate.js
2021-07-04 23:15:27 -05:00

8 lines
301 B
JavaScript

const db = require("../utils/database.js");
const logger = require("../utils/logger.js");
// run when the bot is added to a guild
module.exports = async (client, cluster, worker, ipc, guild) => {
logger.log(`[GUILD JOIN] ${guild.name} (${guild.id}) added the bot.`);
await db.addGuild(guild);
};