mirror of
https://github.com/spacebarchat/server.git
synced 2026-03-31 05:05:38 +00:00
Revert "added big todo list to Guild.ts (big chungus)"
This reverts commit 0f58995182.
This commit is contained in:
@@ -107,7 +107,6 @@ 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);
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user