- Frist install
Mojo-Webqq
cpan -i App::cpanminus
# If the command above is too slow, try to use http://mirrors.163.com/.help/cpan.html
cpanm -v Mojo::Webqq
If you run perl x.pl
and see error about @INC
, try add these thing in your .bashrc
or .zshrc
, whatever.
PATH="/home/your_username/perl5/bin${PATH+:}${PATH}"; export PATH;
PERL5LIB="/home/your_username/perl5/lib/perl5${PERL5LIB+:}${PERL5LIB}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/your_username/perl5${PERL_LOCAL_LIB_ROOT+:}${PERL_LOCAL_LIB_ROOT}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/your_username/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/your_username/perl5"; export PERL_MM_OPT;
- Then install the package used in python:
Change directory into simple-qq-bot by cd simple-qq-bot
.
Install the package by pip install -r requirements.txt
.
If you see error about "EnvironmentError: mysql_config not found", try sudo apt-get install libmysqlclient-dev
and pip install -r requirements
again.
- Create database and user with appropriate privilege.
- Modify some settings in config.py.
- Change directory into simple-qq-bot/resources/ and run the two commands
perl x.pl
andpython qq_bot.py
respectively.
- Fork from ihciah.
- Based on Flask and Mojo-Webqq
- Simplified functional: support only for group chat.
- Consistent with the project wechat