1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-09-29 20:40:59 -04:00
Daggerbot-TS/src/commands/faq.ts

37 lines
3.5 KiB
TypeScript
Raw Normal View History

2023-05-23 01:14:17 -04:00
import Discord from 'discord.js';
2023-04-14 06:47:58 -04:00
import TClient from '../client.js';
2023-12-24 10:21:40 -05:00
import FAQHelper from '../helpers/FAQHelper.js';
export default class FAQ {
static run(_client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
2023-02-24 19:55:11 -05:00
({
2023-12-24 10:21:40 -05:00
srp: ()=>FAQHelper.reply(interaction, null, `[Ballyspring](<${FAQHelper.linkMapping.ballyspring}>) is the map that is used in Survival Roleplay S4.\n\n> __Note__\n> The map won't look closely like the one in SRP as it is privately edited version of the public map.`, null, false),
vtcR: ()=>interaction.reply(FAQHelper.youCanGetRole('vtcmember', 'truck')+'\n*VTC skin can also be found in <#801975222609641472> as well.*'),
mpR: ()=>interaction.reply(FAQHelper.youCanGetRole('mpplayer', 'tractor')),
ytscam: ()=>FAQHelper.reply(interaction, 'Scammers in YouTube comments section', 'If you ever see a comment mentioning a giveaway or anything else, **it\'s a scam!**\nYou should report it to YouTube and move on or ignore it.\nP.S: They\'re on every channel and not just Daggerwin.', FAQHelper.CDN('YTScam'), true),
steamscam: ()=>FAQHelper.reply(interaction, 'Steam account report scam', `If you received a DM about this, please report it to Discord Moderators or open a [ticket](${FAQHelper.linkMapping.staffTicket})`, FAQHelper.CDN('SteamScam'), true),
fsVerifyGame: ()=>FAQHelper.reply(interaction, 'Verifying your game files', `You can verify your game files if you experience any issues with your game.\n${FAQHelper.verifyGameFiles}`, FAQHelper.CDN('Steam-Epic-VerifyGamesLocation'), true),
fsShader: ()=>FAQHelper.reply(interaction, 'Clearing your shader cache folder', 'If your game keeps crashing shortly after opening your game, then the shaders might be an issue.\nTo resolve this, you can go to `Documents/My Games/FarmingSimulator2022` and delete the folder called `shader_cache`', FAQHelper.CDN('shader_cache-Location'), true),
fsLogfile: ()=>FAQHelper.reply(interaction, 'Uploading your log file', 'You can find `log.txt` in `Documents/My Games/FarmingSimulator2022` and upload it into <#596989522395398144> along with your issue, so people can assist you further and help you resolve.', FAQHelper.CDN('log_txt-Location'), true),
fsDevConsole: ()=>FAQHelper.reply(interaction, 'Enabling the development console', 'Head over to `game.xml` in `Documents/My Games/FarmingSimulator2022` and find the section that mentions `<controls>false</controls>` inside development section, change it to `true` then you are good to go!\nFYI: The keybind to open console is \``\u200b\` (backtick).', FAQHelper.CDN('enableDevConsole'), true)
2023-02-24 19:55:11 -05:00
} as any)[interaction.options.getString('question', true)]();
2023-12-24 10:21:40 -05:00
}
static data = new Discord.SlashCommandBuilder()
2023-02-24 19:55:11 -05:00
.setName('faq')
.setDescription('List of questions, e.g; log file for FS, YT Scams and etc.')
2023-05-23 01:14:17 -04:00
.addStringOption(x=>x
2023-02-24 19:55:11 -05:00
.setName('question')
.setDescription('What question do you want answered?')
.setRequired(true)
2023-12-24 10:21:40 -05:00
.setChoices(
2023-03-01 16:36:23 -05:00
{ name: 'Survival Roleplay Map', value: 'srp'},
2023-02-24 19:55:11 -05:00
{ name: 'Scams in YT comments', value: 'ytscam' },
2023-06-24 16:52:23 -04:00
{ name: 'Steam account report scam', value: 'steamscam' },
2023-02-24 19:55:11 -05:00
{ name: 'VTC Role', value: 'vtcR' },
{ name: 'MP Role', value: 'mpR' },
2023-08-07 15:20:49 -04:00
{ name: '[FS] Verifying game files', value: 'fsVerifyGame' },
{ name: '[FS] Resolve shader_cache issue', value: 'fsShader' },
{ name: '[FS] Log file location', value: 'fsLogfile' },
{ name: '[FS] Enabling the console', value: 'fsDevConsole' }
2023-02-24 19:55:11 -05:00
))
}