This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 879
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修正linux下的utf8logger.py中的bug,增加virtualenv和test脚本
- Loading branch information
Showing
8 changed files
with
90 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
sudo pip install virtualenv | ||
|
||
mkdir ~/Py3Venv | ||
cd ~/Py3Venv | ||
virtualenv --python=python3 --no-site-packages qqbot-venv | ||
|
||
cd qqbot-venv/bin/ | ||
source activate | ||
|
||
pip install requests==2.7.0 | ||
pip install certifi==2015.4.28 | ||
pip install flask==0.12 | ||
|
||
pip install qqbot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
from .qqbotcls import QQBot, Main | ||
from .qterm import QTerm | ||
from .common import CallInNewConsole, EchoRun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
source ~/Py3Venv/qqbot-venv/bin/activate | ||
|
||
echo 请等待 QQBot 启动成功... | ||
read -n 1 | ||
|
||
echorun qq help | ||
echorun qq list buddy | ||
echorun qq list group | ||
echorun qq list discuss | ||
|
||
echorun qq send buddy hcj nihao 你好 wohao | ||
echorun qq send group connie wohao 我好 wohao | ||
echorun qq send discuss "Eva、hcj" tahao 他好 tahao | ||
|
||
echorun qq get buddy hcj | ||
echorun qq get group connie | ||
echorun qq get discuss "Eva、hcj" | ||
|
||
echorun qq member group connie | ||
echorun qq member discuss "Eva、hcj" | ||
|
||
echorun qq restart | ||
|
||
echorun qq stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
source ~/Py3Venv/qqbot-venv/bin/activate | ||
pip uninstall qqbot | ||
pip install . | ||
|
||
popup bash test-bot.sh | ||
|
||
qqbot -u eva |