diff --git a/src/models/interfaces.ts b/src/models/interfaces.ts index d340143..2001d26 100644 --- a/src/models/interfaces.ts +++ b/src/models/interfaces.ts @@ -12,3 +12,10 @@ export interface ICompatList { description: string } } + +export interface IResponses { + pmReply: string, + quotes: { + [key: string]: string + } +} diff --git a/src/state.ts b/src/state.ts index 5e0f758..5694b60 100644 --- a/src/state.ts +++ b/src/state.ts @@ -1,6 +1,6 @@ import UserWarning from './models/UserWarning'; import UserBan from './models/UserBan'; -import { IGameDBEntry } from './models/interfaces'; +import { IGameDBEntry, IResponses } from './models/interfaces'; import discord = require('discord.js'); /* Application State */ @@ -8,7 +8,7 @@ class State { logChannel: discord.TextChannel | discord.DMChannel; msglogChannel: discord.TextChannel | discord.DMChannel; warnings: UserWarning[]; - responses: any; + responses: IResponses; bans: UserBan[]; stats: { joins: number; ruleAccepts: number; leaves: number; warnings: number; }; lastGameDBUpdate: number;