feat: expanding discord links

This commit is contained in:
PandaNinjas 2023-01-14 16:24:32 -08:00
parent 7ddba345c6
commit 73676c28f4
No known key found for this signature in database
GPG key ID: 0BD7553044D47763
2 changed files with 74 additions and 1 deletions

View file

@ -10,6 +10,7 @@ import { reuploadCommands } from './_reupload';
import * as BuildConfig from './constants';
import { parseLog } from './logs';
import { getLatestMinecraftVersion } from './utils/remoteVersions';
import { expandDiscordLink } from "./utils/resolveMessage";
import { membersCommand } from './commands/members';
import { starsCommand } from './commands/stars';
@ -87,12 +88,12 @@ client.once('ready', async () => {
`${random(BuildConfig.ETA_MESSAGES)} <:pofat:1031701005559144458>`
);
}
const log = await parseLog(e.content);
if (log != null) {
e.reply({ embeds: [log] });
return;
}
await expandDiscordLink(e);
});
});