1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

#5 fixed log messages

This commit is contained in:
Fedor Katurov 2021-05-12 14:43:59 +07:00
parent c249875b31
commit 70ce0bff1c
3 changed files with 6 additions and 2 deletions

View file

@ -41,7 +41,9 @@ export class HttpApi {
public async listen() {
const httpServer = http.createServer(this.app);
httpServer.listen(this.props.port);
logger.info(`http api listening at ${this.props.port}`);
logger.info(
`http api listening for ${this.vk.endpoint} at localhost:${this.props.port}`
);
}
/**

View file

@ -25,6 +25,8 @@ async function main() {
await httpApi.listen();
await telegramApi.probe();
logger.info("bot successfully started");
} catch (e) {
logger.error(e.message);
}

View file

@ -98,7 +98,7 @@ export class VkService {
handlers.forEach((channel) => {
keys(channel).forEach((event) => {
console.log(`updates in ${String(event)}`);
console.log(` - ${group.name} listens for ${String(event)}`);
updates.on(event as any, channel[event].execute);
});
});