- Node.js
- NPM
npm i -g now babel-node
(install dev/deploy tools).
git clone https://github.com/sasha240100/ik71bot.git
cd ./ik71bot
npm install
npm run dev
- Start development
npm run deploy
- Deploy to a server
npm run undeploy
- Stop and remove a bot from a server
- Create a file
./src/users/yourName.js
with the following template code:
./src/users/yourName.js
:
import api from '../api';
// your code goes here
- Add this file to
index.js
users list:
./src/index.js
:
import './bot';
// Users
import './users/alex';
import './users/yourName'; // Add this line
Answers to /ik71 anyTextMessage
, where "anyTextMessage" is your phrase (Can be a string or an array of strings)
phrases
- What bot receives as your message in chatresponse
- What bot answers after receiving the message
Simply tell a phrase in a chat.
Execute some code when phrase is recieved.