-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cmd): .simbridgedebug command (#478)
Co-authored-by: NUT <[email protected]>
- Loading branch information
1 parent
80f9287
commit a0b98c5
Showing
5 changed files
with
33 additions
and
0 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,26 @@ | ||
import { MessageCommandDefinition } from '../../lib/command'; | ||
import { makeEmbed, makeLines } from '../../lib/embed'; | ||
import { CommandCategory, imageBaseUrl } from '../../constants'; | ||
|
||
const SIMBRIDGE_HELP_URL = `${imageBaseUrl}/support/simbridgeDebug.png`; | ||
|
||
const simbridgeDebugEmbed = makeEmbed({ | ||
title: 'FlyByWire Support | Why does SimBridge crash?', | ||
description: makeLines([ | ||
'If SimBridge crashes moments after start, it could be due to bad installation of SimBridge, missing modules or another issue. In order to assist you further we will need to see your SimBridge logs.', | ||
'', | ||
'1. Open the folder where SimBridge is installed.', | ||
'2. Open a terminal window in that location (Hold `SHIFT` and right click on the empty space of the folder, then select "Open Windows Terminal", "Open Command Prompt", or "Open Powershell Window".', | ||
'3. Type `fbw-simbridge.exe` and press enter.', | ||
'4. Screenshot the output of the console and send it to us.', | ||
]), | ||
image: { url: SIMBRIDGE_HELP_URL }, | ||
footer: { text: 'Tip: Click the image to view in full size' }, | ||
}); | ||
|
||
export const simbridgeDebug: MessageCommandDefinition = { | ||
name: ['simbridgedebug', 'sbdebug'], | ||
description: 'Provides instructions to debug SimBridge', | ||
category: CommandCategory.SUPPORT, | ||
genericEmbed: simbridgeDebugEmbed, | ||
}; |