forked from pinks/eris
1
0
Fork 0
eris/api/botRoute.ts

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() }),
},
);