Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.
/ new_llf-bot Public archive

mirai Bot for snh48 group GNZ48刘力菲应援会

License

Notifications You must be signed in to change notification settings

Miffy1030-llf/new_llf-bot

Repository files navigation

0. Basic Infomation

This repository is for 'GNZ48-刘力菲应援会', which is based on mirai as a qq bot engine.

Thanks for the repository below to provide codes which are easy to use:

  1. mirai-api-http

  2. mamoe/mirai

  3. Application for Graia Framework

  4. MskAdr/Tao-Ba-Grub

1. How to use

basic enviroment:

ubuntu

python3.7+

mirai

mirai-api-http

mongodb

1.1 Start a mirai-console

  1. choose a dirctory to install miraiOK
  2. download miraiOK wget http://t.imlxy.net:64724/mirai/MiraiOK/miraiOK_linux_amd64 -O miraiOK
  3. start miraiOK
    chmod +x miraiOK
     ./miraiOK

4.edit ./config.txt

----------
login 123456789 ppaasswwdd

the '----------' in the first line is needed

  1. download MiraiAPIHTTP, and put the .jar in ./plugins download URL
  2. edit plugins/MiraiAPIHTTP/setting.yml (create if needed)
  3. restart miraiOK

1.2 install python dependency

pip install -r requirements.txt

1.3 edit config

cd ./shared
cp config.ini.example config.ini

edit your qq infomation and authkey(config in plugin setting.yml)

edit your mongdb infomation

2. custom

You can customize your auto-reply bot in auto_bot.py which use Graia as framework. To get more infomation about this framework, you can refer to their github repository and their doc

3. pocket48 room message

Because of the limitations of pocket 48, I chose Netease Yunxin(netease im)'s nodejs sdk to get the messages. To get more information about NIM, please refer to SDK.To send message to QQ, call mirai http api directly.

Todo list

  • get room messgae of pocket48
  • get weibo of Miffy
  • maybe customize flag for pk

Welcome to QQ Group 244898692 to support GNZ48-刘力菲

About

mirai Bot for snh48 group GNZ48刘力菲应援会

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published