Chat upgraded for dice rolls and system messages

This commit is contained in:
2020-07-27 17:09:18 +02:00
parent 2598e5864e
commit 92644d9008
35 changed files with 304 additions and 125 deletions

View File

@@ -0,0 +1,25 @@
export abstract class Entry {
public timestamp;
protected constructor() {
this.timestamp = new Date();
}
}
export class SystemMessage extends Entry {
constructor(public message: string,
public severity: SeverityEnum) {
super();
}
public get type(): string {
return 'system'
}
}
export enum SeverityEnum {
info = 'info',
warning = 'warning',
error = 'error',
}