Skip to content

sweetcczhang/wechatyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wechatyBot

image use web config the keywords and chatroom name.

功能:使用web界面配置入群的关键词,以及所入的群名

Get started

  • 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

image image

Result

  • 功能:使用web界面配置入群的关键词,以及所入的群名

  • 如:

    关键词:hi                   群名:同步群2

    发送关键词hi会把该联系人拉到同步群2群里。

    关键词:helloword 群名:wechaty

    发送关键词helloword把该联系人拉到wechaty群里。

About

use web config the keywords and chatroom Name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published