mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 15:06:41 +07:00
added help command
This commit is contained in:
parent
6d3f511807
commit
621b03fb70
12 changed files with 91 additions and 9 deletions
|
@ -13,12 +13,18 @@ const data = fs.readFileSync(
|
|||
"utf8"
|
||||
);
|
||||
|
||||
const userConfig = yaml.load(data) as Config;
|
||||
const userConfig = yaml.load<Config>(data);
|
||||
|
||||
const config =
|
||||
(userConfig && merge(defaultConfig, userConfig)) || defaultConfig;
|
||||
|
||||
export default function prepareConfig() {
|
||||
validateConfig(config);
|
||||
|
||||
config.telegram.templates = {
|
||||
help: config.templates.help,
|
||||
help_admin: config.templates.help_admin,
|
||||
};
|
||||
|
||||
return config;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue