Skip to content

Commit

Permalink
2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
chasyumen committed Mar 31, 2023
1 parent 53ce6de commit cfaed61
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 158 deletions.
4 changes: 2 additions & 2 deletions bot/events/guildMemberAdd.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
exec: async function (member) {
if (member.guild.available) {
var serverData = await member.guild.getdb();
console.log(serverData);
// console.log(serverData);
if (!serverData.memberJoinNotify) {
var logString = `GUILD: \`${member.guild.name} (ID:${member.guild.id})\`, MEMBER: \`${member.user.tag} (ID:${member.user.id})\`, NOTIFY: \`DISABLED\``;

Expand All @@ -16,7 +16,7 @@ module.exports = {
} else {
var channel = member.guild.systemChannel ?? null;
}
console.log(channel);
// console.log(channel);
if (!channel) {
var logString = `GUILD: \`${member.guild.name} (ID:${member.guild.id})\`, MEMBER: \`${member.user.tag} (ID:${member.user.id})\`, NOTIFY: \`CHANNEL_NOT_FOUND\``;

Expand Down
4 changes: 2 additions & 2 deletions bot/events/guildMemberRemove.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
exec: async function (member) {
if (member.guild.available) {
var serverData = await member.guild.getdb();
console.log(serverData);
// console.log(serverData);
if (!serverData.memberJoinNotify) {
var logString = `GUILD: \`${member.guild.name} (ID:${member.guild.id})\`, MEMBER: \`${member.user.tag} (ID:${member.user.id})\`, NOTIFY: \`DISABLED\``;

Expand All @@ -16,7 +16,7 @@ module.exports = {
} else {
var channel = member.guild.systemChannel ?? null;
}
console.log(channel);
// console.log(channel);
if (!channel) {
var logString = `GUILD: \`${member.guild.name} (ID:${member.guild.id})\`, MEMBER: \`${member.user.tag} (ID:${member.user.id})\`, NOTIFY: \`CHANNEL_NOT_FOUND\``;

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require("dotenv").config();
const { ShardingManager } = require("discord.js");
const shards = (global.shards = new ShardingManager("./bot/index.js"));
const shards = (global.shards = new ShardingManager("./bot/index.js", {token: process.env.DISCORD_TOKEN}));
process.on("uncaughtException", console.error);
process.on("unhandledRejection", console.error);

Expand Down
Loading

0 comments on commit cfaed61

Please sign in to comment.