Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: APmodes #526

Merged
merged 6 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Update <small>_ July 2024</small>

- feat: New .APModes command (4/7/2024)
- fix: update takeoff calculator and flex temp command to highlight new improvements (01/07/2024)

Update <small>_ June 2024</small>
Expand Down
2 changes: 2 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ import { spad } from './general/spad';
import { devLanguages } from './general/devLanguages';
import { simbridgeDebug } from './support/simbridgeDebug';
import { migratedCommand } from './general/migratedCommand';
import { apmodes } from './support/apmodes';
//import { avatar } from './utils/avatar';
//import { ban } from './moderation/ban';
//import { birthday } from './utils/birthday';
Expand Down Expand Up @@ -310,6 +311,7 @@ const commands: BaseCommandDefinition[] = [
devLanguages,
simbridgeDebug,
migratedCommand,
apmodes,
//avatar,
//ban,
//birthday,
Expand Down
19 changes: 19 additions & 0 deletions src/commands/support/apmodes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { MessageCommandDefinition } from '../../lib/command';
import { CommandCategory } from '../../constants';
import { makeEmbed } from '../../lib/embed';

const MANAGED_SELECTED_IMAGE = 'https://cdn.discordapp.com/attachments/1234165731319353436/1258331400709472256/New_Project_1.png?ex=6687a7f0&is=66865670&hm=462f8a417207e18117703c42295da293497dc2895f88f30d068c07f216ea5259&';
LunakisDev marked this conversation as resolved.
Show resolved Hide resolved

export const apModesEmbed = makeEmbed({
title: 'Auto Pilot Modes',
description: 'For a detailed explanation of the different guidance modes visit our [documentation](https://docs.flybywiresim.com/pilots-corner/advanced-guides/flight-guidance/overview/#autopilot-and-flight-director-modes).',
image: { url: MANAGED_SELECTED_IMAGE },
footer: { text: 'Tip: Click the image to view in full size' },
});

export const apmodes: MessageCommandDefinition = {
name: ['apmodes', 'APmodes'],
description: 'Provides information about the Managed and Selected autopilot modes.',
category: CommandCategory.SUPPORT,
genericEmbed: apModesEmbed,
};
Loading