mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-18 21:11:39 +01:00
add better aniv timeouts, add aniv dodges, fix blank user target bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type { AccessToken } from "@twurple/auth";
|
||||
import type { inventory, items } from "items";
|
||||
import { integer, jsonb, pgTable, timestamp, uuid, varchar } from "drizzle-orm/pg-core";
|
||||
import { boolean, integer, jsonb, pgTable, timestamp, uuid, varchar } from "drizzle-orm/pg-core";
|
||||
import type { anivBots } from "lib/handleAnivMessage";
|
||||
import { relations } from "drizzle-orm";
|
||||
|
||||
@@ -95,8 +95,9 @@ export const anivTimeouts = pgTable('anivTimeouts', {
|
||||
user: integer().notNull().references(() => users.id),
|
||||
message: varchar().notNull(),
|
||||
anivBot: varchar().$type<anivBots>().notNull(),
|
||||
duration: integer().notNull(),
|
||||
created: timestamp().defaultNow().notNull()
|
||||
duration: integer(),
|
||||
created: timestamp().defaultNow().notNull(),
|
||||
timeout: boolean().default(true)
|
||||
});
|
||||
|
||||
export const anivTimeoutsRelations = relations(anivTimeouts, ({ one }) => ({
|
||||
|
||||
Reference in New Issue
Block a user