forked from pinks/eris
https://elysiajs.com/ Reviewed-on: pinks/eris#25 Co-authored-by: pinks <lisq@cock.li> Co-committed-by: pinks <lisq@cock.li>
15 lines
294 B
TypeScript
15 lines
294 B
TypeScript
import { Elysia, t } from "elysia";
|
|
import { bot } from "../bot/mod.ts";
|
|
|
|
export const botRoute = new Elysia()
|
|
.get(
|
|
"",
|
|
async () => {
|
|
const username = bot.botInfo.username;
|
|
return { username };
|
|
},
|
|
{
|
|
response: t.Object({ username: t.String() }),
|
|
},
|
|
);
|