-
Clone repository
-
Install dependency
npm install
- 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"
}
}
- Create database and run command
node_modules/.bin/sequelize db:migrate
node_modules/.bin/sequelize db:seed:all
- 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
}
}
- For run bot
node start.js
Some function like reminder was comment.