3.0.0 • Published 6 years ago

starbot v3.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Starbot NPM version Build Status

About

Starbot is a lightweight framework for quickly and easily creating bots for different social platforms. Plug-ins expand functionality of the framework. The framework only manages the modules.

Starbot

Types of modules

Modules storage:

Modules adapters:

Modules to control the bot:

Installation

$ npm install --save starbot starbot-store-redis starbot-vk-adapter starbot-story-bot

Using

const app = require('express')();
const bodyParser = require('body-parser');

const Starbot = require('starbot');
const StoreRedis = require('starbot-store-redis');
const AdapterVk = require('starbot-vk-adapter');
const StoryBot = require('starbot-story-bot');


const bot1 = Starbot({
  bot: new StoryBot({
    ...configBot,
  }),
  store: new StoreRedis({
    ...configStore,
  }),
  adapter: new AdapterVk({
    ...configAdapter,
  })
});

app.use(bodyParser.json());
app.use('/bot/telegram', bot1);

app.listen(80, function () {
  console.log('Example app listening on port 80!');
});

License

MIT © antitim

3.0.0

6 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago