mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
getloot results are now stored in the database, use lootbox triggers getloot
This commit is contained in:
@@ -54,6 +54,13 @@ export type anivTimeoutRecord = {
|
||||
duration: number;
|
||||
};
|
||||
|
||||
export type getLootRecord = {
|
||||
id?: string;
|
||||
user: string;
|
||||
qbucks: number;
|
||||
items: inventory;
|
||||
};
|
||||
|
||||
interface TypedPocketBase extends PocketBase {
|
||||
collection(idOrName: 'auth'): RecordService<authRecord>;
|
||||
collection(idOrName: 'users'): RecordService<userRecord>;
|
||||
@@ -62,6 +69,7 @@ interface TypedPocketBase extends PocketBase {
|
||||
collection(idOrName: 'cheerEvents'): RecordService<cheerEventRecord>;
|
||||
collection(idOrName: 'cheers'): RecordService<cheerRecord>;
|
||||
collection(idOrName: 'anivTimeouts'): RecordService<anivTimeoutRecord>;
|
||||
collection(idOrName: 'getLoots'): RecordService<getLootRecord>;
|
||||
};
|
||||
|
||||
export default new PocketBase(pocketbaseurl).autoCancellation(false) as TypedPocketBase;
|
||||
|
||||
Reference in New Issue
Block a user