/robot_bender

Primary LanguageJavaScript

Bender Telegram bot

bender

How to install ?

  1. Clone repository

  2. Install dependency

npm install
  1. Create config.json in ./config
{
  "development": {
    "username": "root",
    "password": null,
    "database": "your_db_name",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "test": {
    "username": "root",
    "password": null,
    "database": "your_db_name",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  "production": {
    "username": "root",
    "password": null,
    "database": "your_db_name",
    "host": "127.0.0.1",
    "dialect": "mysql"
  }
}
  1. Create database and run command
node_modules/.bin/sequelize db:migrate
node_modules/.bin/sequelize db:seed:all
  1. Config bot like this
{
  "development": {
      "token": "{you_bot_token}",
      "polling": true
  },
  "test": {
    "token": "{you_bot_token}",
    "polling": true
  },
  "production": {
    "token": "{you_bot_token}",
    "polling": true
  }
}

How do I Create a bot?

  1. For run bot
node start.js

UPD

Some function like reminder was comment.