Skip to content

Commit

Permalink
🔊 feat: log for new baekjoon bot user
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Oct 8, 2023
1 parent 2d444a8 commit 473fb88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot/welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const logger = require("../logger")

client.on("guildCreate", async(guild) => {
let channel = guild.channels.cache.find(channel => channel.type === 0);
logger.info(`${guild.ownerId} Uses Baekjoon bot newly`)
if (!channel){
logger.warn(`${guild.ownerId} / No chat channel found`)
return;
Expand Down

0 comments on commit 473fb88

Please sign in to comment.