extra cat
This commit is contained in:
parent
d40e05966c
commit
27269c07ed
3 changed files with 89 additions and 4 deletions
|
|
@ -1,11 +1,12 @@
|
|||
import type { Handle } from '@sveltejs/kit';
|
||||
import { think } from 'cowsay';
|
||||
import info from '$lib';
|
||||
|
||||
export const handle: Handle = async ({ event, resolve }) => {
|
||||
if (event.request.headers.get('user-agent')?.includes('curl')) {
|
||||
return new Response(`\
|
||||
if (event.request.headers.get('user-agent')?.includes('curl')) {
|
||||
return new Response(`\
|
||||
\
|
||||
\x1b[1m"${info.quote}"\x1b[0m
|
||||
${think({ f: 'cat2', text: `\x1b[1m"${info.quote}"\x1b[0m` })}
|
||||
${info.description}
|
||||
|
||||
\x1b[2;3m${info.title} - ${event.request.headers.get('user-agent')} version ;)\x1b[0m\n\
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue