state: add typing for response file

This commit is contained in:
liushuyu 2020-05-02 13:06:35 -06:00
parent c0ab384086
commit 3f282a9c19
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
2 changed files with 9 additions and 2 deletions

View File

@ -12,3 +12,10 @@ export interface ICompatList {
description: string description: string
} }
} }
export interface IResponses {
pmReply: string,
quotes: {
[key: string]: string
}
}

View File

@ -1,6 +1,6 @@
import UserWarning from './models/UserWarning'; import UserWarning from './models/UserWarning';
import UserBan from './models/UserBan'; import UserBan from './models/UserBan';
import { IGameDBEntry } from './models/interfaces'; import { IGameDBEntry, IResponses } from './models/interfaces';
import discord = require('discord.js'); import discord = require('discord.js');
/* Application State */ /* Application State */
@ -8,7 +8,7 @@ class State {
logChannel: discord.TextChannel | discord.DMChannel; logChannel: discord.TextChannel | discord.DMChannel;
msglogChannel: discord.TextChannel | discord.DMChannel; msglogChannel: discord.TextChannel | discord.DMChannel;
warnings: UserWarning[]; warnings: UserWarning[];
responses: any; responses: IResponses;
bans: UserBan[]; bans: UserBan[];
stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; }; stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; };
lastGameDBUpdate: number; lastGameDBUpdate: number;