add ping, why, paths, cursed
This commit is contained in:
parent
f26e14119c
commit
7cc183692f
5 changed files with 156 additions and 46 deletions
77
commands.ts
Normal file
77
commands.ts
Normal file
|
@ -0,0 +1,77 @@
|
|||
import type { Client, Message } from 'discord.js';
|
||||
|
||||
type Commands = {
|
||||
[cmd: string]: (c: Client, e: Message) => void | Promise<void>;
|
||||
};
|
||||
|
||||
export const commands: Commands = {
|
||||
'!ping': async (c, e) => {
|
||||
await e.reply(`${c.ws.ping}ms`);
|
||||
},
|
||||
|
||||
'!why': async (c, e) => {
|
||||
await e.reply({
|
||||
embeds: [
|
||||
{
|
||||
title: 'Why PolyMC exists',
|
||||
description:
|
||||
'https://polymc.org/wiki/overview/faq/#why-did-our-community-choose-to-fork\nhttps://polymc.org/news/moving-on/',
|
||||
color: 'GREYPLE',
|
||||
},
|
||||
],
|
||||
});
|
||||
},
|
||||
|
||||
'!paths': async (c, e) => {
|
||||
await e.reply({
|
||||
embeds: [
|
||||
{
|
||||
title: 'Data directories',
|
||||
description: 'Where PolyMC stores your data (e.g. instances)',
|
||||
color: 'AQUA',
|
||||
fields: [
|
||||
{
|
||||
name: 'Portable (Windows / Linux)',
|
||||
value: 'In the PolyMC folder',
|
||||
},
|
||||
{
|
||||
name: 'Windows',
|
||||
value: '`%APPDATA%/PolyMC`',
|
||||
},
|
||||
{
|
||||
name: 'macOS',
|
||||
value: '`~/Library/Application Support/PolyMC`',
|
||||
},
|
||||
{ name: 'Linux', value: '`~/.local/share/PolyMC`' },
|
||||
{
|
||||
name: 'Flatpak',
|
||||
value: '`~/.var/app/org.polymc.PolyMC/data/PolyMC`',
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
});
|
||||
},
|
||||
|
||||
'!cursed': async (c, e) => {
|
||||
e.reply({
|
||||
embeds: [
|
||||
{
|
||||
title: "What's wrong with CurseForge?",
|
||||
description: `
|
||||
There is a new option to block third party clients from accessing mod files. CurseForge started to enforce the option for modders to disallow third-party applications like PolyMC and other launchers.
|
||||
|
||||
We probably can't fully fix this. If you find out which mod is causing this, tell the modder to toggle that option.
|
||||
`.trim(),
|
||||
color: 'ORANGE',
|
||||
},
|
||||
],
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
export const aliases = {
|
||||
'!curse': '!cursed',
|
||||
'!curseforge': '!cursed',
|
||||
'!diff': '!why',
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue