Simple TypeScript project to publish posts from VK (using callback api) to Discord (using webhooks).
This project was made for node:18-alpine, however it can be used with almost any node version. Please, use yarn package manager instead of npm / pnpm / any other.
- Copy
.env.templateto.env - Fill required fields
- Setup VK Callbacks (in group settings) with field
wall_post - Done!
- Make sure that docker is installed
- Run
docker build -t tag .(replacetagwith your image name)
yarn lint- run eslint task to check is everything okyarn dev- runsrc/index.tsin development mode (using ts-node)yarn build- buildsrc/**.tsfiles intodist/**.jsyarn start- run builtdist/index.js
dotenv- parse .env file@nekoteam/logger- fancy console loggerexpress- webserver to handle vk callbacksdiscord.js- to publish fancy discord embedsmarkdown-escape- escape markdown in some vk messages
eslint- standardjs config with custom ruleshusky- git hooks to avoid "style: lint" commits with lint fixestypescript- used for compiling .ts filests-node- used for development
Feel free to open Issues and Pull Requests!
- Reposting is not supported