mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 15:06:41 +07:00
added vk events handler stub
This commit is contained in:
parent
dfae42c197
commit
3f908da91e
11 changed files with 125 additions and 67 deletions
|
@ -1,9 +1,20 @@
|
|||
import { VkConfig } from './types';
|
||||
import { VkConfig } from "./types";
|
||||
|
||||
export class VkService {
|
||||
public endpoint: string = "/";
|
||||
|
||||
constructor(private config: VkConfig) {
|
||||
if (!config.groups.length) {
|
||||
throw new Error('No vk groups to handle. Specify them in config')
|
||||
throw new Error("No vk groups to handle. Specify them in config");
|
||||
}
|
||||
|
||||
this.endpoint = config.endpoint;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handles incoming VK events
|
||||
*/
|
||||
public handle = async (event: any) => {
|
||||
// TODO: handle events
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue