added big todo list to Guild.ts (big chungus)

This commit is contained in:
xnacly
2021-09-03 21:33:44 +02:00
parent 78f348ea0b
commit 4a63e1560c
3 changed files with 52 additions and 1 deletions
+1
View File
@@ -107,6 +107,7 @@ export default function rateLimit(opts: {
}
export async function initRateLimits(app: Router) {
return;
const { routes, global, ip, error } = Config.get().limits.rate;
await listenEvent(EventRateLimit, (event) => {
Cache.set(event.channel_id as string, event.data);
+14
View File
@@ -0,0 +1,14 @@
import { Guild } from "@fosscord/util";
import { Router, Request, Response } from "express";
import { In } from "typeorm";
const router = Router();
router.get("/", async (req: Request, res: Response) => {
const { limit } = req.params;
const guilds = await Guild.find({ where: { features: "PENIS" } }); //, take: Math.abs(Number(limit)) });
res.send({ guilds: guilds });
});
export default router;