Skip to content

Commit

Permalink
refactor(links): change guide link to new domain
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-737 committed Jan 15, 2024
1 parent 578d56a commit 3957595
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ This repo contains the source code for the InterChat Discord bot. InterChat is a

## Prerequisites

1. [Node.js v18.16.1](https://nodejs.org/download/release/v18.16.1/) (or higher for non-Windows based systems)
1. [Node.js v18.**16**.0](https://nodejs.org/download/release/v18.16.0/) (or higher for non-Windows based systems)
2. [Git](https://git-scm.com/downloads)
3. [MongoDB](https://www.mongodb.com/try/download/community)
4. [NPM](https://www.npmjs.com/get-npm) or [Yarn](https://yarnpkg.com/getting-started/install) (we are using npm in this guide)
5. [An Imgur API Key](https://api.imgur.com/oauth2/addclient) (optional, for setting hub icon and banner)
6. [Python 3.9.13](https://www.python.org/downloads/release/python-2718/) & [Visual Studio Build Tools (Windows Only)](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019) (for the API)
6. [Python 3.9.13](https://www.python.org/downloads/release/python-3913/) & [Visual Studio Build Tools (Windows Only)](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2019) (for the API)

## Running the code

Expand Down
2 changes: 1 addition & 1 deletion locales
4 changes: 2 additions & 2 deletions src/commands/slash/Information/credits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class Credits extends BaseCommand {
${emojis.dotBlue} @${members[5]?.username}
${linksDivider}
[Guide](https://discord-interchat.github.io/docs) • [Invite](https://discord.com/application-directory/769921109209907241) • [Support Server](${LINKS.SUPPORT_INVITE}) • [Vote](https://top.gg/bot/769921109209907241/vote) • [Privacy](https://discord-interchat.github.io/docs/legal/privacy) • [Terms](https://discord-interchat.github.io/docs/legal/terms)
[Guide](${LINKS.DOCS}) • [Invite](https://discord.com/application-directory/769921109209907241) • [Support Server](${LINKS.SUPPORT_INVITE}) • [Vote](https://top.gg/bot/769921109209907241/vote) • [Privacy](${LINKS.DOCS}/legal/privacy) • [Terms](${LINKS.DOCS}/legal/terms)
`);

const linkButtons = new ActionRowBuilder<ButtonBuilder>().addComponents(
Expand All @@ -70,7 +70,7 @@ export default class Credits extends BaseCommand {
.setStyle(ButtonStyle.Link)
.setLabel('Guide')
.setEmoji(emojis.guide_icon)
.setURL('https://discord-interchat.github.io/docs'),
.setURL(LINKS.DOCS),
new ButtonBuilder()
.setStyle(ButtonStyle.Link)
.setLabel('Support')
Expand Down
4 changes: 2 additions & 2 deletions src/commands/slash/Information/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { EmbedBuilder, ChatInputCommandInteraction } from 'discord.js';
import BaseCommand from '../../BaseCommand.js';
import { paginate } from '../../../utils/Pagination.js';
import { stripIndents } from 'common-tags';
import { colors, emojis } from '../../../utils/Constants.js';
import { LINKS, colors, emojis } from '../../../utils/Constants.js';

export default class Help extends BaseCommand {
readonly data = {
Expand Down Expand Up @@ -69,7 +69,7 @@ export default class Help extends BaseCommand {
`);

const page4 = EmbedBuilder.from(baseEmbed).setTitle('Final Notes').setDescription(stripIndents`
You\'re all set! You can now chat with people from other servers in real-time. For more detailed information and advanced features, refer to the official [InterChat online guide](https://discord-interchat.github.io/docs). Have fun! 🎉
You\'re all set! You can now chat with people from other servers in real-time. For more detailed information and advanced features, refer to the official [InterChat online guide](${LINKS.DOCS}). Have fun! 🎉
For any questions, suggestions or feedback, join the [support server](https://discord.gg/2YkZAP2) or [vote for InterChat](https://top.gg/bot/769921109209907241/vote).
`);
Expand Down
3 changes: 1 addition & 2 deletions src/commands/slash/Information/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default class Stats extends BaseCommand {
const guildCount = count.reduce((p, n) => p + n, 0);

const uptime = msToReadable(interaction.client.uptime);
const docsLink = 'https://discord-interchat.github.io/docs';

const embed = new EmbedBuilder()
.setColor(colors.interchatBlue)
Expand Down Expand Up @@ -81,7 +80,7 @@ export default class Stats extends BaseCommand {
.setLabel('Guide')
.setStyle(ButtonStyle.Link)
.setEmoji(emojis.docs_icon)
.setURL(docsLink),
.setURL(LINKS.DOCS),
new ButtonBuilder()
.setLabel('Support')
.setStyle(ButtonStyle.Link)
Expand Down
2 changes: 1 addition & 1 deletion src/commands/slash/Main/hub/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export default class Create extends Hub {
.setDescription(
t(
{ phrase: 'hub.create.success', locale: interaction.user.locale },
{ name, support_invite: LINKS.SUPPORT_INVITE },
{ name, support_invite: LINKS.SUPPORT_INVITE, docs_link: LINKS.DOCS },
),
)
.setTimestamp();
Expand Down
3 changes: 2 additions & 1 deletion src/commands/slash/Main/hub/invite.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChatInputCommandInteraction, CacheType, EmbedBuilder } from 'discord.js';
import Hub from './index.js';
import { captureException } from '@sentry/node';
import { emojis } from '../../../../utils/Constants.js';
import { LINKS, emojis } from '../../../../utils/Constants.js';
import db from '../../../../utils/Db.js';
import Logger from '../../../../utils/Logger.js';
import { simpleEmbed } from '../../../../utils/Utils.js';
Expand Down Expand Up @@ -54,6 +54,7 @@ export default class Invite extends Hub {
{ phrase: 'hub.invite.create.success', locale: interaction.user.locale },
{
inviteCode: createdInvite.code,
docs_link: LINKS.DOCS,
expiry: `<t:${Math.round(createdInvite.expires.getTime() / 1000)}:R>`,
},
),
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/network/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export async function showOnboarding(
.setDescription(
t(
{ phrase: 'network.onboarding.embed.description', locale: interaction.user.locale },
{ hubName },
{ hubName, docs_link: LINKS.DOCS },
),
)
.setColor(colors.interchatBlue)
Expand Down
2 changes: 1 addition & 1 deletion src/utils/Constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const SupporterIds = ['880978672037802014'];
export const LINKS = {
TOPGG_API: 'https://top.gg/api/bots/769921109209907241',
VOTE: 'https://top.gg/bot/769921109209907241/vote',
DOCS: 'https://discord-interchat.github.io/docs',
DOCS: 'https://docs.interchat.fun',
SUPPORT_INVITE: 'https://discord.gg/6bhXQynAPs',
APP_DIRECTORY: 'https://discord.com/application-directory/769921109209907241',
RULES_BANNER: 'https://i.imgur.com/MBG0Rks.png',
Expand Down

0 comments on commit 3957595

Please sign in to comment.