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

34 lines
3.8 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';
export default {
2023-03-05 05:04:10 -05:00
run(client: TClient, interaction: Discord.ChatInputCommandInteraction<'cached'>){
2023-02-24 19:55:11 -05:00
({
2023-06-08 07:58:51 -04:00
srp: ()=>interaction.reply('[Ballyspring](<https://www.farming-simulator.com/mod.php?mod_id=270745>) 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.'),
2023-05-27 09:00:29 -04:00
vtcR: ()=>interaction.reply(`You can get the <@&${client.config.mainServer.roles.vtcmember}> role from <#802283932430106624> by clicking :truck: button on a webhook's message\n*VTC skin can also be found in <#801975222609641472> as well.*`),
mpR: ()=>interaction.reply(`You can get the <@&${client.config.mainServer.roles.mpplayer}> role from <#802283932430106624> by clicking :tractor: button on webhook's message`),
2023-02-24 19:55:11 -05:00
ytscam: ()=>interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Scammers in YouTube comments section').setDescription('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.').setImage('https://cdn.discordapp.com/attachments/1015195575693627442/1068078284996345916/image.png')]}),
2023-06-24 16:52:23 -04:00
steamscam: ()=>interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Steam account report scam').setImage('https://cdn.discordapp.com/attachments/1091300529696673792/1122266621088645130/image.png')]}),
2023-05-01 17:23:50 -04:00
fsShader: ()=>interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Clearing your shader cache folder').setDescription('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`').setImage('https://cdn.discordapp.com/attachments/1015195575693627442/1015195687970943016/unknown.png')]}),
2023-04-16 17:48:15 -04:00
fsLogfile: ()=>interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Uploading your log file').setDescription('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.').setImage('https://cdn.discordapp.com/attachments/1015195575693627442/1015195643528101958/unknown.png')]}),
fsDevConsole: ()=>interaction.reply({embeds: [new client.embed().setColor(client.config.embedColor).setTitle('Enabling the development console').setDescription('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).').setImage('https://cdn.discordapp.com/attachments/1015195575693627442/1097273921444790322/image.png')]})
2023-02-24 19:55:11 -05:00
} as any)[interaction.options.getString('question', true)]();
},
2023-05-23 01:14:17 -04:00
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)
.addChoices(
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' },
{ name: '[FS22] Resolve shader_cache issue', value: 'fsShader' },
2023-04-16 17:48:15 -04:00
{ name: '[FS22] Log file location', value: 'fsLogfile' },
{ name: '[FS22] Enabling the console', value: 'fsDevConsole' }
2023-02-24 19:55:11 -05:00
))
}