add support for ETAs
This commit is contained in:
parent
fc5f7fdc82
commit
8b08bb9d22
4 changed files with 21 additions and 5 deletions
15
src/index.ts
15
src/index.ts
|
@ -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;
|
||||
|
||||
|
|
|
@ -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/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue