committed event scripts (forgot to last time)

This commit is contained in:
ayeuhugyu 2023-09-16 07:27:05 -07:00
parent 1b03b8ca15
commit 5b2bd43069
5 changed files with 99 additions and 0 deletions

View file

@ -0,0 +1,14 @@
const fs = require("fs");
module.exports.execute = function (member) {
if (member.guild.id === "1112819622505365556") {
fs.appendFileSync(
"../pepperbot/data/guildmembers.log",
member.user.username + ` -- added by bot: ${Date()} \n`
);
const channel = client.channels.cache.get("1148814162273763418");
channel.send(
`added new guild member ${member.user.username} (${member.user.id}) to members list`
);
}
};