[ci] format

This commit is contained in:
natemoo-re 2023-08-25 23:11:22 +00:00 committed by astrobot-houston
parent 2bdce4c4a0
commit 3ad5a2a287

View file

@ -7,7 +7,8 @@ import { banner, say, welcome } from '../messages.js';
export async function intro(ctx: Pick<Context, 'skipHouston' | 'version' | 'username' | 'fancy'>) {
if (!ctx.skipHouston) {
const hat = ctx.fancy ? random(['🎩', '🎩', '👑', '🧢', '🍦']) : undefined;
await say([
await say(
[
[
'Welcome',
'to',
@ -16,7 +17,9 @@ export async function intro(ctx: Pick<Context, 'skipHouston' | 'version' | 'user
`${ctx.username}!`,
],
random(welcome),
], { hat });
],
{ hat }
);
await banner(ctx.version);
} else {
await banner(ctx.version);