user-lp-bot

user-lp-bot ===================== USER-LP-BOT - a module for creating a personal VK page bot ===================== Installation

Usage no npm install needed!

<script type="module">
  import userLpBot from 'https://cdn.skypack.dev/user-lp-bot';
</script>

README

user-lp-bot

USER-LP-BOT - a module for creating a personal VK page bot

Installation

npm install user-lp-bot

Using

const { Bot, Command } = require("user-lp-bot");
new Bot("token", user_id);
new Command(regexp, process, user_id);

Initially, one command "restart" is created in the bot to restart the bot.

An example of a simple page bot

const { Bot, Command } = require("user-lp-bot");
new Bot ('1df7f07400be0ec3b797fa6bc12d2f98fb79990a639bfc0d671c14b9793ab4e4c96fbf7f027ae82d6af94', 123456789);
new Command(/^(?:бот)$/i, async (message, answer) => {
    return answer(`Ok`);
}, 123456789);```