Rework AI
This commit is contained in:
parent
e46c4427cc
commit
aebee54562
10 changed files with 79 additions and 20 deletions
|
|
@ -6,6 +6,10 @@ import type { IState } from "./types.js";
|
|||
|
||||
let state: IState = {
|
||||
users: [],
|
||||
personality: {
|
||||
index: 0,
|
||||
startTime: 0,
|
||||
},
|
||||
};
|
||||
|
||||
const load = () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
interface IState {
|
||||
users: IUser[];
|
||||
personality: IPersonality;
|
||||
}
|
||||
|
||||
interface IUser {
|
||||
|
|
@ -16,4 +17,9 @@ interface IUser {
|
|||
|
||||
type TRole = "NONE" | "USER" | "MODERATOR" | "ADMIN";
|
||||
|
||||
export { type IState, type IUser, type TRole };
|
||||
interface IPersonality {
|
||||
index: number;
|
||||
startTime: number;
|
||||
}
|
||||
|
||||
export { type IState, type IUser, type TRole, type IPersonality };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue