use web config the keywords and chatroom name.
功能:使用web界面配置入群的关键词,以及所入的群名
-
wechaty get startd please read this guide
-
Django get started please read this guide
-
run the chatybob and web use your own databases.
in mybot.js
var connection = mysql.createConnection({
host:'127.0.0.1',
user:'root',
password:'111111',
port:'3306',
database: 'chatydb'
});
int wechatyWeb/sttings.py
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'chatydb',
'USER': 'root',
'PASSWORD': '111111',
'HOST': '127.0.0.1',
'POST': '3306',
}
}
run the chatybot and web
cd wechatyBot
node mybot.js
python manage.py runserver 0.0.0.0:8000
-
功能:使用web界面配置入群的关键词,以及所入的群名
-
如:
关键词:hi 群名:同步群2
发送关键词hi会把该联系人拉到同步群2群里。
关键词:helloword 群名:wechaty
发送关键词helloword把该联系人拉到wechaty群里。