2020-03-22 22:09:33 +00:00
|
|
|
import { IConfig, EConfigVersions } from './config';
|
|
|
|
|
|
|
|
export default class Config004 {
|
|
|
|
static parse(conf: IConfig004): IConfig {
|
|
|
|
return {
|
2020-03-23 00:28:19 +00:00
|
|
|
version: EConfigVersions.V010,
|
2020-03-22 22:09:33 +00:00
|
|
|
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;
|
|
|
|
}
|