-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename info subjects to "topics", improve typing
- Loading branch information
Showing
19 changed files
with
107 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { BaseMessageOptions, EmbedBuilder } from 'discord.js'; | ||
|
||
export function getBaseEmbed() { | ||
return new EmbedBuilder().setColor('#FFBE00'); | ||
} | ||
|
||
export type InfoTopic = { | ||
name: string; | ||
message: BaseMessageOptions; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...ds/handlers/info/subjects/firebot-logs.ts → ...ands/handlers/info/topics/firebot-logs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
import { getBaseEmbed } from "../info-slash"; | ||
import { getBaseEmbed, InfoTopic } from '../info-helpers'; | ||
|
||
export const firebotLogs = { | ||
export const firebotLogs: InfoTopic = { | ||
name: 'Firebot Logs', | ||
message: { | ||
content: 'Please post your latest Firebot log file', | ||
embeds: [ | ||
getBaseEmbed().setTitle('How to locate your Logs folder').setDescription(` | ||
getBaseEmbed().setTitle('How to locate your Logs folder') | ||
.setDescription(` | ||
1. In Firebot, go to **File** > **Open Logs Folder** | ||
- or - | ||
2. Press **Win + R**, paste \`%appdata%\\Firebot\\v5\\logs\\\` into the field, and click **OK**. | ||
`), | ||
], | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { authIssues } from './auth-issues'; | ||
import { bitDefender } from './bit-defender'; | ||
import { butAnother } from './but-another'; | ||
import { cloudBackups } from './cloud-backup'; | ||
import { dataFolder } from './data-folder'; | ||
import { discordMentions } from './discord-mentions'; | ||
import { expert } from './expert'; | ||
import { firebotLogs } from './firebot-logs'; | ||
import { instalLog } from './install-log'; | ||
import { manualRestore } from './manual-restore'; | ||
import { nightly } from './nightly-builds'; | ||
import { obsTroubleShooting } from './obs-troubleshooting'; | ||
import { offScreen } from './offscreen'; | ||
import { tuts } from './tutorials'; | ||
import { InfoTopic } from '../info-helpers'; | ||
|
||
export const infoTopics: Array<InfoTopic> = [ | ||
authIssues, | ||
bitDefender, | ||
butAnother, | ||
cloudBackups, | ||
dataFolder, | ||
discordMentions, | ||
expert, | ||
firebotLogs, | ||
instalLog, | ||
manualRestore, | ||
nightly, | ||
obsTroubleShooting, | ||
offScreen, | ||
tuts, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
.../handlers/info/subjects/nightly-builds.ts → ...ds/handlers/info/topics/nightly-builds.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
import { getBaseEmbed } from "../info-slash"; | ||
import { getBaseEmbed, InfoTopic } from '../info-helpers'; | ||
|
||
export const nightly = { | ||
export const nightly: InfoTopic = { | ||
name: 'Nightly Builds', | ||
message: { | ||
embeds: [ | ||
getBaseEmbed() | ||
.setTitle('Nightly Builds').setDescription( | ||
.setTitle('Nightly Builds') | ||
.setDescription( | ||
`You can find more information about the Nightly builds [here](https://discord.com/channels/372817064034959370/372821213443129346/973669737877889094).` | ||
), | ||
], | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters