mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-05-12 15:16:40 +07:00
added templaters
This commit is contained in:
parent
1754092f7c
commit
d5228ef146
13 changed files with 406 additions and 17 deletions
13
src/service/vk/handlers/StubHandler.ts
Normal file
13
src/service/vk/handlers/StubHandler.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
import { VkEventHandler } from "./VkEventHandler";
|
||||
import { NextMiddleware } from "middleware-io";
|
||||
import logger from "../../logger";
|
||||
|
||||
/**
|
||||
* StubHandler is used to stub event calls
|
||||
*/
|
||||
export class StubHandler extends VkEventHandler {
|
||||
public execute = async (context: any, next: NextMiddleware) => {
|
||||
logger.debug(`received unhandled message of type "${context.type}"`);
|
||||
await next();
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue