A project based on pyQQRobot.
- Receive and display messages you got
- Display replies the program sent.
- Ping and Pong
- Wolfram|Alpha query <NEEDS API KEY!>
- Tuling(English: Turing) Robot <NEEDS API KEY!>
- Youdao Translate <NEEDS API KEY!>
- Baidu Translate <NEEDS API KEY!>
- Builtin help manual
First, get a .veri file by running:
$ python3 genVeriFile.py
It will ask you to scan the QR in order to login. By default the QR image won't show automatically on Linux, you have to open it manually.
After getting the .veri file, a.k.a saved the login state, you can start the robot program:
$ python3 bot.py <*QQID*.veri>
Don't forget to re-generate the .veri file if your .veri file is not up-to-date. In this case, your robot won't login properly until you get a new .veri file.
When you successfully started the bot program, try typing 'wa <query>' to activate Wolfram|Alpha search, and 'help' for a help manual. Also you can talk with the Tuling Robot by typing 'wtmbot <text>'. You can change 'wtmbot' to other names in the source file. For example, from this:
elif msg[0:7].lower() == 'wtmbot ':
msg = msg[7:]
reMsg = user['nick'] + ':' + t.response(msg, uin)
To this:
elif msg[0:6].lower() == 'tlbot ':
msg = msg[6:]
reMsg = user['nick'] + ':' + t.response(msg, uin)
Note the number changed(equal to the length of name - 1), and the space after the name.
- bot.py: the main program
- genVeriFile.py: generates .veri verication file for the robot program to login without scanning QRs every time
- tuling.py: Tuling Robot API Class
- wolfram.py: Wolfram|Alpha API Class
- ydcv.py: Youdao Translate
- bdtrans.py: Baidu Translate
- mogic.py: MogicBot!
- original pyQQRobot Project
- mlogger.py
- qqfriends.py
- qqhttp.py
- qqhttp_gevent.py
- qqrobot.py