mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-20 03:51:38 +01:00
created timeout function and minor changes
This commit is contained in:
@@ -5,9 +5,9 @@ import { HelixUser } from "@twurple/api"
|
||||
const EXPIRETIME = 60 * 30 // 30 minutes
|
||||
|
||||
export class User {
|
||||
public username: string | undefined;
|
||||
public id: string | undefined;
|
||||
public displayName: string | undefined;
|
||||
public username!: string;
|
||||
public id!: string;
|
||||
public displayName!: string;
|
||||
|
||||
static async initUsername(username: string): Promise<User | null> {
|
||||
const userObj = new User();
|
||||
|
||||
Reference in New Issue
Block a user