@@ -42,6 +42,7 @@
"sha1": "^1.1.1",
"sqlite3": "^4.0.3",
"translate-google": "^1.3.5",
+ "tsconfig-paths": "^3.8.0",
"turndown": "^5.0.1",
"typeorm": "0.2.18",
"typescript": "^3.5.2",
@@ -53,4 +54,4 @@
"@types/node": "^8.0.29",
"typescript": "3.3.3333"
}
-}
+}
@@ -0,0 +1,15 @@
+import {Entity, PrimaryColumn} from "typeorm";
+
+export enum FaceCaptionType {
+ PREFIX = "prefix",
+ POSTFIX = "postfix"
+@Entity()
+export class FaceCaptionMessage {
+ @PrimaryColumn()
+ message: string;
+ @PrimaryColumn({ type: "varchar" })
+ type: FaceCaptionType;
@@ -0,0 +1,11 @@
+import {Entity, PrimaryColumn, Column} from "typeorm";
+export class FaceMorphProbability {
+ channelID: string;
+ @Column({ type: "decimal" })
+ probability: number;
@@ -0,0 +1,22 @@
+import {Entity, TableInheritance, PrimaryColumn, Column, ChildEntity} from "typeorm";
+import { ReactionType } from "./ReactionEmote";
+@TableInheritance({ column: { type: "varchar", name: "type" } })
+export class KnownUser {
+ userID: string;
+ @Column()
+ canModerate: boolean;
+ @Column({ type: "varchar", default: ReactionType.NONE })
+ reactionType: ReactionType;
+@ChildEntity()
+export class User extends KnownUser { }
+export class UserRole extends KnownUser { }
@@ -0,0 +1,10 @@
+import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
+export class MessageReaction {
+ @PrimaryGeneratedColumn()
+ reactionEmoteId: string;
@@ -0,0 +1,14 @@
+import { Entity, PrimaryColumn, Column } from "typeorm";
+export class PostedForumNewsItem {
+ id: string;
+ hash: string;
+ messageId?: string;
+};
@@ -1,18 +1,14 @@
import {Entity, PrimaryGeneratedColumn, Column} from "typeorm";
@Entity()
-export class User {
+export class Quote {
@PrimaryGeneratedColumn()
id: number;
@Column()
- firstName: string;
+ author: string;
- lastName: string;
-
- @Column()
- age: number;
@@ -0,0 +1,18 @@
+export enum ReactionType {
+ NONE = "none",
+ ANGERY = "angery",
+ HUG = "hug",
+ BIG = "big",
+ DED = "ded"
+export class ReactionEmote {
+ type: ReactionType;
+ reactionId: string;