mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-10 10:43:06 +00:00
Added Eslint GitHub Action and Prettier
This commit is contained in:
parent
d8df48438d
commit
512b7526ab
21 changed files with 480 additions and 293 deletions
|
@ -1,5 +1,11 @@
|
|||
import fs from 'node:fs';
|
||||
import { Client, Collection, Events, GatewayIntentBits, GuildMember } from 'discord.js';
|
||||
import {
|
||||
Client,
|
||||
Collection,
|
||||
Events,
|
||||
GatewayIntentBits,
|
||||
GuildMember,
|
||||
} from 'discord.js';
|
||||
|
||||
import { deployCommands } from './util/deployCommand.js';
|
||||
import { removeMember, setMembers } from './util/db.js';
|
||||
|
@ -82,7 +88,9 @@ client.on(Events.GuildMemberAdd, async (member: GuildMember) => {
|
|||
try {
|
||||
await setMembers(nonBotMembers);
|
||||
// TODO: Move this to config file
|
||||
await welcomeChannel.send(`Welcome to the server, ${member.user.username}!`);
|
||||
await welcomeChannel.send(
|
||||
`Welcome to the server, ${member.user.username}!`,
|
||||
);
|
||||
await member.user.send('Welcome to the Poixpixel Discord server!');
|
||||
}
|
||||
catch (error: any) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue