Add name card generation
This commit is contained in:
3
bot.js
3
bot.js
@@ -1,6 +1,7 @@
|
||||
import {data} from "./wwwroot/core/appData.js";
|
||||
import JsonManager from "./wwwroot/core/utils/jsonManager.js";
|
||||
import {Logger} from "./wwwroot/core/logging/logger.js";
|
||||
import {NameCardCreator} from "./wwwroot/core/welcome/nameCardCreator.js";
|
||||
|
||||
const launch = async () => {
|
||||
try{
|
||||
@@ -30,7 +31,7 @@ const launch = async () => {
|
||||
});
|
||||
|
||||
data.client.on('guildMemberAdd', member => {
|
||||
const avatar = member.user.avatarURL();
|
||||
NameCardCreator.getWelcomeCard("", member.user.avatarURL(), member.user.displayName)
|
||||
});
|
||||
|
||||
process.on('SIGINT', async () => {
|
||||
|
||||
Reference in New Issue
Block a user