Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: update welcome message and @ message #220

Merged
merged 1 commit into from
Dec 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading