add support for ETAs

This commit is contained in:
Ryan Cao 2022-06-10 19:43:29 +08:00
parent fc5f7fdc82
commit 8b08bb9d22
No known key found for this signature in database
GPG key ID: 528A2C1B6656B97F
4 changed files with 21 additions and 5 deletions

View file

@ -16,6 +16,7 @@ import {
type SuccessfulParsedMessage,
} from 'discord-command-parser';
import random from 'just-random';
import { readFile } from 'fs/promises';
import { join } from 'path';
@ -98,6 +99,20 @@ client.once('ready', async () => {
return;
}
if (e.cleanContent.includes('eta')) {
await e.reply(
`${random([
'Sometime',
'Some day',
'Not far',
'The future',
'Never',
'Perhaps tomorrow?',
'There are no ETAs',
])} <:pofat:964546613194420294>`
);
}
const commanded = await parseMsg(e);
if (commanded) return;

View file

@ -62,11 +62,6 @@
"name": "build",
"text": "https://polymc.org/wiki/development/build-instructions/"
},
{
"name": "eta",
"text": "Sometime <:potat:964543999769706556>",
"aliases": ["wen", "when"]
},
{
"name": "why",
"text": "https://polymc.org/wiki/overview/faq/#why-did-our-community-choose-to-fork https://polymc.org/news/moving-on/",