diff --git a/src/utils/Database.ts b/src/utils/Database.ts new file mode 100644 index 0000000..b95dc2f --- /dev/null +++ b/src/utils/Database.ts @@ -0,0 +1,17 @@ +export abstract class DatabaseHandler { + public abstract shutdown(): any; + + public abstract channelExists(channel: string): Promise; + + public abstract counterExists(channel: string, counter: string): Promise; + + public abstract isUserIgnored(channel: string, user: string): Promise; + + public abstract getMessage(channel: string, counter: string): Promise; + + public abstract addChannel(channel: string): Promise; + + public abstract addCounter(channel: string, counter: string): Promise; + + public abstract changeCount(channel: string, counter: string, delta: number): Promise; +} \ No newline at end of file