Skip to content

Commit

Permalink
APModes command
Browse files Browse the repository at this point in the history
  • Loading branch information
LunakisDev committed Jul 4, 2024
1 parent 47fcfa4 commit e368835
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
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&';

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,
};

0 comments on commit e368835

Please sign in to comment.