telme/lib/config/config.0.0.4.ts
Sagi Dayan 2db82b708d [WIP]
- Changed from js to ts
 - Added implementation for profiles
 - Can also be used as a node_module
2020-03-22 18:09:33 -04:00

22 lines
457 B
TypeScript

import { IConfig, EConfigVersions } from './config';
export default class Config004 {
static parse(conf: IConfig004): IConfig {
return {
version: EConfigVersions.V005,
profiles: {
default: {
chat_id: conf.USER_ID,
bot_token: conf.TOKEN,
task_message_template: conf.DONE_MESSAGE
}
}
}
}
}
export interface IConfig004 {
USER_ID: string;
TOKEN: string;
DONE_MESSAGE: string;
}