Skip to content

skyduy/simple-qq-bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple QQ chat bot

How to install

  • 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.

How to run

  • 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 and python qq_bot.py respectively.

Acknowledgement

Why this?

  • Simplified functional: support only for group chat.
  • Consistent with the project wechat

About

A simple QQ bot for group chat :)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.6%
  • Perl 2.4%