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:
parent
c249875b31
commit
70ce0bff1c
3 changed files with 6 additions and 2 deletions
|
@ -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}`
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -25,6 +25,8 @@ async function main() {
|
|||
|
||||
await httpApi.listen();
|
||||
await telegramApi.probe();
|
||||
|
||||
logger.info("bot successfully started");
|
||||
} catch (e) {
|
||||
logger.error(e.message);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue