VK Bot, v1.1.0
Posted on

Extendable VK group bot.
Support attachments with an automatically loading and a caching.
Change Log
- Closed issues:
Features
- listen inbox messages via the long polling technology;
- process messages by the specified outer command:
- serialize a message object (see below for details) to the JSON format;
- attachments:
- support attachments in a response (see below for details);
- automatically load attachments from a command response;
- cache loaded attachments:
- search in a cache by:
- attachment path;
- attachment basename.
- search in a cache by:
Usage
$ vk-bot --version
$ vk-bot --help
Options:
--version— show version number;--help— show help.
Environment variables:
VK_BOT_TOKEN— VK API access token;VK_BOT_COMMAND— messages process command;VK_BOT_CACHE— file where to persist cached attachments (default:~/.vk-bot/attachments.json);VK_BOT_INEXACT_CACHE— search attachments in a cache only by its basenames (allowed:TRUE);VK_BOT_LOG— file where to persist a log (default:~/.vk-bot/logs/app.log).
Environment variables can be specified in a .env file in the project folder in the format:
NAME_1=value_1
NAME_2=value_2
...
See details about the format: https://github.com/motdotla/dotenv#rules.
A .env file will never modify any environment variables that have already been set.
Attachments
/\${file:\/\/(?P<path>[^{}]+)}/
Path may be:
- absolute;
- relative to a current working directory.
Repository
Link: https://github.com/thewizardplusplus/vk-bot/tree/v1.1.0.
Content: code.
License: MIT.
Screenshots
Help message

Messages processing

Copyrights
- road photo — Pixabay License, Copyright © 2014 dawnfu, https://pixabay.com/en/road-distance-landscape-horizon-348544/.