Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 54d268d

Browse files
authored
feat(guildCreate): update welcome message and buttons (#219)
Refactor the welcome message sent to new servers to enhance clarity and engagement. Change the title to "Welcome to InterChat" and revise the description for a more concise introduction. Update button labels for better user guidance, including changing "Docs" to "Wiki" and consolidating "Terms" and "Privacy" into "Terms & Privacy." Remove profanity checks and related messages to streamline the onboarding process.
1 parent 842f4ed commit 54d268d

File tree

1 file changed

+17
-35
lines changed

1 file changed

+17
-35
lines changed

src/events/guildCreate.ts

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import BaseEventListener from '#main/core/BaseEventListener.js';
22
import Constants, { emojis } from '#utils/Constants.js';
33
import { getGuildOwnerOrFirstChannel, logGuildJoin } from '#utils/GuildUtils.js';
44
import Logger from '#utils/Logger.js';
5-
import { check } from '#utils/ProfanityUtils.js';
65
import { stripIndents } from 'common-tags';
76
import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, Guild } from 'discord.js';
87

@@ -16,60 +15,43 @@ export default class Ready extends BaseEventListener<'guildCreate'> {
1615

1716
const { guildOwner, guildChannel } = await getGuildOwnerOrFirstChannel(guild);
1817

19-
// notify the person who added the bot
2018
const embed = new EmbedBuilder()
21-
.setTitle('👋 Thanks for adding me to your server!')
19+
.setTitle('👋 Welcome to InterChat')
2220
.setDescription(
2321
stripIndents`
24-
Take your first step into the world of cross-server chatting with InterChat! 🚀 Explore public hubs, connect with multiple servers, and add a splash of excitement to your server experience. ${emojis.clipart}
25-
### Getting Started
26-
- Simply run \`/setup\` to see an easy to follow setup guide.
27-
- For a more userphone-like experience, type \`c!connect\` to try out our brand new chat lobbies.
28-
- Visit our in-depth [wiki](${Constants.Links.Docs}) for more information.
29-
30-
If you need help, join our [support server](${Constants.Links.SupportInvite}) and we'll be happy to assist!
31-
`,
22+
Connect your server with others through public chat hubs! ${emojis.clipart}
23+
24+
### Quick Start
25+
1. Run \`/setup\` to quickly connect to a hub
26+
2. Browse available hubs at [interchat.fun/hubs](${Constants.Links.Website}/hubs)
27+
3. Check our [wiki](${Constants.Links.Docs}) for advanced features
28+
29+
Need help? Join our [support server](${Constants.Links.SupportInvite})!
30+
`,
3231
)
3332
.setColor(Constants.Colors.interchatBlue)
3433
.setFooter({ text: `Sent for server: ${guild.name}`, iconURL: guild.iconURL() ?? undefined });
3534

3635
const buttons = new ActionRowBuilder<ButtonBuilder>().addComponents(
3736
new ButtonBuilder()
38-
.setLabel('Docs')
37+
.setLabel('Wiki')
3938
.setURL(`${Constants.Links.Docs}/setup`)
4039
.setEmoji(emojis.guide_icon)
4140
.setStyle(ButtonStyle.Link),
4241
new ButtonBuilder()
43-
.setLabel('Terms')
44-
.setURL(`${Constants.Links.Docs}/legal/terms`)
45-
.setEmoji(emojis.docs_icon)
42+
.setLabel('Terms & Privacy')
43+
.setURL(`${Constants.Links.Docs}/legal`)
44+
.setEmoji(emojis.lock_icon)
4645
.setStyle(ButtonStyle.Link),
4746
new ButtonBuilder()
48-
.setLabel('Privacy')
49-
.setURL(`${Constants.Links.Docs}/legal/privacy`)
50-
.setEmoji(emojis.lock_icon)
47+
.setLabel('Discord')
48+
.setURL(Constants.Links.SupportInvite)
49+
.setEmoji(emojis.code_icon)
5150
.setStyle(ButtonStyle.Link),
5251
);
5352

5453
const welcomeMsg = { embeds: [embed], components: [buttons] };
5554
guildOwner?.send(welcomeMsg).catch(() => null);
5655
guildChannel?.send(welcomeMsg).catch(() => null);
57-
58-
const { hasProfanity, hasSlurs } = check(guild.name);
59-
if (!hasProfanity && !hasSlurs) return;
60-
61-
const profaneErrorEmbed = new EmbedBuilder()
62-
.setTitle('Leave Notice 👋')
63-
.setDescription(
64-
`${emojis.no} Your server name contains profanity or sensitive content. Please change it before using InterChat.`,
65-
)
66-
.setColor(Constants.Colors.invisible)
67-
.setFooter({ text: `Sent for: ${guild.name}`, iconURL: guild.iconURL() ?? undefined });
68-
69-
const leaveMsg = { embeds: [profaneErrorEmbed] };
70-
guildOwner?.send(leaveMsg).catch(() => null);
71-
guildChannel?.send(leaveMsg).catch(() => null);
72-
73-
await guild.leave();
7456
}
7557
}

0 commit comments

Comments
 (0)