Skip to content

Commit

Permalink
refactor: remove discordjs-docs search in favour of official bot
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Dec 10, 2023
1 parent 7b7e6a4 commit 6d9ea19
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 389 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@
"@sapphire/fetch": "^2.4.2",
"@sapphire/result": "^2.6.5",
"@sapphire/utilities": "^3.14.0",
"@skyra/env-utilities": "^1.2.1",
"@skyra/http-framework": "^1.2.2",
"@skyra/env-utilities": "^1.2.2",
"@skyra/http-framework": "^2.0.0",
"@skyra/jaro-winkler": "^1.1.0",
"date-fns": "^2.30.0",
"discordjs-docs-parser": "^1.3.3",
"he": "^1.2.0",
"ioredis": "^5.3.2",
"turndown": "^7.1.2"
Expand Down
149 changes: 0 additions & 149 deletions src/commands/discordjs-docs.ts

This file was deleted.

37 changes: 0 additions & 37 deletions src/interaction-handlers/discordjs-docs.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/lib/constants/emotes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
export const ExtractEmojiIdRegex = /<a?:_:(?<id>\d{17,18})>/;

export const DjsGuideIcon = `<:_:814216203466965052>` as const;
export const DjsDocsStableIcon = '<:_:851461487498493952>' as const;
export const DjsDocsDevIcon = '<:_:851461195554619442>' as const;
export const GreenTick = '<:_:637706251253317669>' as const;
export const RedCross = '<:_:637706251257511973>' as const;
export const MdnIcon = '<:_:861671077365284884>' as const;
Expand All @@ -15,17 +13,3 @@ export const GhPrMerged = '<:_:864240877416873984>' as const;
export const GhPrOpen = '<:_:864240877479657482>' as const;
export const DiscordDevelopersIcon = '<a:_:898636681920536576>' as const;
export const SapphireGemId = '<:_:746069730170896405>' as const;

// #region Discord Docs Emojis
export const DiscordJsDocsClass = '<:_:898645160349552700>' as const;
export const DiscordJsDocsClassDev = '<:_:898645160219512864>' as const;
export const DiscordJsDocsEnumDev = '<:_:898645160257290240>' as const;
export const DiscordJsDocsEnumOrInterface = '<:_:898645160219521134>' as const;
export const DiscordJsDocsEvent = '<:_:898645159942713406>' as const;
export const DiscordJsDocsEventDev = '<:_:898645160253087816>' as const;
export const DiscordJsDocsField = '<:_:898645160286646322>' as const;
export const DiscordJsDocsFieldDev = '<:_:898645160248897586>' as const;
export const DiscordJsDocsInterfaceDev = '<:_:898645160336977960>' as const;
export const DiscordJsDocsMethod = '<:_:898645159934316565>' as const;
export const DiscordJsDocsMethodDev = '<:_:898645160244674560>' as const;
// #endregion
111 changes: 0 additions & 111 deletions src/lib/util/discordjs-docs.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/lib/util/setup.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import { RedisCacheClient } from '#lib/redis-cache/RedisCacheClient';
import { loadTags } from '#utils/tags';
import { setup } from '@skyra/env-utilities';
import { Doc } from 'discordjs-docs-parser';
import { URL } from 'node:url';

process.env.NODE_ENV ??= 'development';

Doc.setGlobalOptions({
escapeMarkdownLinks: true
});

setup(new URL('../../../.env', import.meta.url));

await loadTags();
Expand Down
Loading

0 comments on commit 6d9ea19

Please sign in to comment.