-
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.
refactor: update atc command with new link and information (#389)
* refactor: update atc command with new link and information Based on changes in flybywiresim/docs#691 * CHANGELOG for refactor: update atc command with new link and information * Typo fix on CHANGELOG Co-authored-by: NUT <[email protected]>
- Loading branch information
1 parent
001c0eb
commit 4d00d45
Showing
2 changed files
with
32 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,37 @@ | ||
import { CommandDefinition } from '../../lib/command'; | ||
import { makeEmbed, makeLines } from '../../lib/embed'; | ||
import { MessageCommandDefinition } from '../../lib/command'; | ||
import { makeEmbed } from '../../lib/embed'; | ||
import { CommandCategory } from '../../constants'; | ||
|
||
export const atc: CommandDefinition = { | ||
const genericAtcEmbed = makeEmbed({ | ||
title: 'FlyByWire A32NX | Using the built-in Microsoft Flight Simulator ATC', | ||
description: 'There are multiple ways of using the built-in ATC of MSFS:', | ||
fields: [ | ||
{ | ||
name: 'Loading a Flight Plan from the MSFS World Map', | ||
value: 'Ensures the Flight Plan from the MSFS World Map is imported into the aircraft\'s MCDU, without synchronizing changes back to MSFS ATC.', | ||
inline: false, | ||
}, | ||
{ | ||
name: 'Using a Flight Plan from the MSFS World Map with MSFS ATC', | ||
value: 'This mode loads the Flight Plan from the MSFS World Map into the aircraft\'s MCDU and attempts to synchronize all changes made back to MSFS ATC.', | ||
inline: false, | ||
}, | ||
{ | ||
name: 'Importing a SimBrief Flight Plan and using MSFS ATC', | ||
value: 'When importing the Flight Plan from SimBrief and not building a Flight Plan through the MSFS World Map, this mode will attempt to synchronize the Flight Plan back to MSFS ATC.', | ||
inline: false, | ||
}, | ||
{ | ||
name: 'More information', | ||
value: 'Please read the [Flight Planning guide](https://docs.flybywiresim.com/fbw-a32nx/feature-guides/flight-planning/) for more details.', | ||
inline: false, | ||
}, | ||
], | ||
}); | ||
|
||
export const atc: MessageCommandDefinition = { | ||
name: 'atc', | ||
category: CommandCategory.AIRCRAFT, | ||
description: 'Provides details on the use of the built-in ATC and a link to the cFMS special notes section.', | ||
executor: (msg) => { | ||
const atcEmbed = makeEmbed({ | ||
title: 'FlyByWire A32NX | Using the built-in Microsoft Flight Simulator ATC', | ||
description: makeLines([ | ||
'There are multiple ways of using the built-in ATC of MSFS:', | ||
]), | ||
fields: [ | ||
{ | ||
name: 'Synchronizing the MCDU flight plan back to MSFS ATC', | ||
value: 'In this mode, you only select a departure airport and gate (or runway). You should not select a destination airport. Once the EFB setting for **Sync MSFS Flight Plan** is set to **Save**, any flight plan entered, or loaded, into the MCDU F-PLN page, will be synced to the MSFS ATC service.', | ||
inline: false, | ||
}, | ||
{ | ||
name: 'Loading the same flight plan in the World Planner and the MCDU', | ||
value: 'In this mode, the EFB setting for **Sync MSFS Flight Plan** should be set to **None**. You can then load a flight plan into the World Planner (for instance through exporting it from Simbrief, or by letting the World Planner build one for you) and once the aircraft has loaded and has been powered up, you enter or load the same flight plan in the MCDU.', | ||
inline: false, | ||
}, | ||
{ | ||
name: 'More information', | ||
value: 'Please read cFMS special notes [here.](https://docs.flybywiresim.com/fbw-a32nx/feature-guides/cFMS/#special-notes)', | ||
inline: false, | ||
}, | ||
], | ||
}); | ||
|
||
return msg.channel.send({ embeds: [atcEmbed] }); | ||
}, | ||
genericEmbed: genericAtcEmbed, | ||
}; |