1
0
mirror of https://github.com/elisspace/FxLifeSheet.git synced 2026-08-29 15:44:00 +00:00
Files
FxLifeSheet/classes/config.ts
2019-04-30 12:56:30 +02:00

21 lines
465 B
TypeScript

// Interfaces
interface Command {
description: String;
schedule: String;
questions: [QuestionToAsk];
}
interface QuestionToAsk {
key: String;
question: String;
type: String;
buttons: { [key: string]: String };
replies: { [key: string]: String };
}
let userConfig: { [key: string]: Command } = require("../lifesheet.json");
console.log("Successfully loaded user config");
module.exports.userConfig = userConfig;
export { Command, QuestionToAsk };