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: add .screenshot, add .msfs + fixes #22

Merged
merged 8 commits into from
Aug 29, 2021
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import { donate } from './donate';
import { utf8 } from './utf-8';
import { calibrate } from './calibrate';
import { nut } from './nut';
import { screenshot } from './screenshot';
import { msfs } from './msfs';
import { CommandDefinition } from '../lib/command';
import Logger from '../lib/logger';

Expand Down Expand Up @@ -54,6 +56,8 @@ const commands: CommandDefinition[] = [
utf8,
calibrate,
nut,
screenshot,
msfs,
];

const commandsObject: { [k: string]: CommandDefinition } = {};
Expand Down
2 changes: 1 addition & 1 deletion src/commands/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const installer: CommandDefinition = {
executor: (msg) => msg.channel.send(makeEmbed({
title: 'Installer',
description: 'Download the new A32NX Installer where you can select either the Stable, Developer or an Experimental Version, '
+ 'and download and install the mod directly into your Community Folder, [download here](https://api.flybywiresim.com/installer)',
+ 'and download and install the addon directly into your Community Folder, [download here](https://api.flybywiresim.com/installer)',
footer: { text: 'If you are having further problems, let us know in our Support Channel and we will provide more assistance.' },
})),
};
13 changes: 13 additions & 0 deletions src/commands/msfs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { CommandDefinition } from '../lib/command';
import { CommandCategory } from '../constants';
import { makeEmbed } from '../lib/embed';

export const msfs: CommandDefinition = {
name: ['msfs', 'msfsforum'],
description: 'Provides links to MSFS support for sim issues',
category: CommandCategory.FBW,
executor: (msg) => msg.channel.send(makeEmbed({
title: 'FlyByWire Support | Sim issues',
description: 'This is the FlyByWire Support channel, and we\'re only able to help with issues with our aircraft. For any core Microsoft Flight Simulator related issues please ask on [Microsoft Flight Simulator\'s Discord](https://discord.gg/FZKDaVst) or in the official [Microsoft Flight Simulator Forum](https://forums.flightsimulator.com/c/community/140).',
})),
};
20 changes: 20 additions & 0 deletions src/commands/screenshot.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { CommandDefinition } from '../lib/command';
import { makeEmbed, makeLines } from '../lib/embed';
import { CommandCategory } from '../constants';

const SCREENSHOT_HELP_URL = 'https://docs.flybywiresim.com/fbw-a32nx/assets/support-guide/cockpit-screenshot.jpg';

export const screenshot: CommandDefinition = {
name: ['screenshot', 'cockpit'],
description: 'Help to screenshot for support',
category: CommandCategory.FBW,
executor: (msg) => msg.channel.send(makeEmbed({
title: 'FlyByWire Support | How to take a good screenshot',
description: makeLines([
'Position yourself in the cockpit using the arrow keys to look straight at the front instrument panel. '
+ 'Then use the Windows Snipping Tool to take a clear screenshot of all screens and the FCU as shown.',
'Please read the guide [here](https://docs.flybywiresim.com/fbw-a32nx/support/#screenshot-of-cockpit) for more information. ',
]),
image: { url: SCREENSHOT_HELP_URL },
})),
};
10 changes: 6 additions & 4 deletions src/commands/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ export const versions: CommandDefinition = {
},
{
name: 'Stable',
value: '> Stable is our variant that has the fewest bugs and best performance. '
+ 'It will not always be up to date but we guarantee its compatibility with each major patch from MSFS.'
value: '> Stable is our version which has features that are the most mature and most tested. '
+ 'This should be a reliable version for those preferring stability over newest features. '
+ 'Will be compatible with each major MSFS patch.'
+ '\n> Use the installer or [download here](https://api.flybywiresim.com/api/v1/download?url=https://flybywiresim-packages.b-cdn.net/stable/A32NX-stable.zip)',
inline: false,
},
{
name: 'Development',
value: '> Development will have the latest features that will end up in the next stable. '
+ 'Bugs are to be expected. It updates whenever something is added to the \'master\' branch on Github.'
value: '> Development will have the latest features that will eventually end up in the next stable release. '
+ 'In general this version has the latest fixes and newest features but also a slightly higher risk of containing bugs. '
+ 'Development updates whenever a change is made to the "master" branch on Github. '
+ '\n> Use the installer or [download here](https://api.flybywiresim.com/api/v1/download?url=https://flybywiresim-packages.b-cdn.net/vmaster/A32NX-master.zip)',
inline: false,
},
Expand Down