mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 16:51:38 +01:00
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import db from "db/connection";
|
|
import User from "user";
|
|
import { anivTimeouts } from "db/schema";
|
|
import { type anivBots } from "lib/handleAnivMessage";
|
|
|
|
export async function createAnivTimeoutRecord(message: string, anivbot: anivBots, user: User, duration: number) {
|
|
await db.insert(anivTimeouts).values({
|
|
message,
|
|
anivBot: anivbot,
|
|
user: parseInt(user.id),
|
|
duration
|
|
});
|
|
};
|