Skip to content

Commit

Permalink
refactor: update welcome message and @ message
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Dec 14, 2024
1 parent 54d268d commit 60b29b9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/events/guildCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Ready extends BaseEventListener<'guildCreate'> {
.setTitle('👋 Welcome to InterChat')
.setDescription(
stripIndents`
Connect your server with others through public chat hubs! ${emojis.clipart}
Break down server walls and chat across Discord! ${emojis.clipart}
### Quick Start
1. Run \`/setup\` to quickly connect to a hub
Expand Down
18 changes: 9 additions & 9 deletions src/events/messageCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { showRulesScreening } from '#main/interactions/RulesScreening.js';
import { LobbyManager } from '#main/managers/LobbyManager.js';
import { ConnectionService } from '#main/services/ConnectionService.js';
import { MessageProcessor } from '#main/services/MessageProcessor.js';
import Constants from '#main/utils/Constants.js';
import Constants, { emojis } from '#main/utils/Constants.js';
import { handleError, isHumanMessage } from '#utils/Utils.js';
import { stripIndents } from 'common-tags';
import { Message } from 'discord.js';
Expand All @@ -28,16 +28,16 @@ export default class MessageCreate extends BaseEventListener<'messageCreate'> {
}
else if (
message.content === `<@${message.client.user.id}>` ||
message.content === `<@!${message.client.user.id}>`
message.content === `<@!${message.client.user.id}>`
) {
await message.channel
.send(
stripIndents`
### Hey there! I'm InterChat, the cross-server chatting bot! 🎉
- To get started, use \`/help\` for a easy guide on how to use me.
- If you're new here, please read the rules by typing \`/rules\`.
- You can type \`c!connect\` to connect to a random lobby. Or use \`/hub join\` to join a cross-server community.
-# **Need help?** Join our [support server](<${Constants.Links.SupportInvite}>).
### Hey there! I'm InterChat, a bot that connects servers together. ${emojis.clipart}
- To get started, type \`/setup\` to set up InterChat with a hub.
- If you're new here, read the rules by typing \`/rules\`.
- Use the [hub browser](${Constants.Links.Website}/hubs) to find and join more cross-server communities.
-# ***Need help?** Join our [support server](<${Constants.Links.SupportInvite}>).*
`,
)
.catch(() => null);
Expand All @@ -57,8 +57,8 @@ export default class MessageCreate extends BaseEventListener<'messageCreate'> {
if (!commandName) return;

const command =
message.client.prefixCommands.get(commandName) ||
message.client.prefixCommands.find((cmd) => cmd.data.aliases?.includes(commandName));
message.client.prefixCommands.get(commandName) ||
message.client.prefixCommands.find((cmd) => cmd.data.aliases?.includes(commandName));

if (!command) return;

Expand Down

0 comments on commit 60b29b9

Please sign in to comment.