Skip to content

A auto scout and report bot (use Tencent QQ to report) for game Astro Empires

Notifications You must be signed in to change notification settings

heye0507/Astro_Empires_Auto_Scout_Bot

Repository files navigation

Astro_Empires_Auto_Scout_Bot

A auto scout and report bot (use Tencent QQ to report) for game Astro Empires

Designed for game Astro Empires.

Updated beta v0.4 UPDATES: 11/25/2018

moving_fleets_v2.py

ADD: read config file from path, can use config file to set search range simply create a file name "config.txt" in the directory with moving_fleets_v2.py

ADD: location based search moving_fleets_v2.py will now generate a new report that is location based (simple report) Known issues:

  1. Location grouped, it will only show that fastest arrival
  2. If the incoming player doesn't have guild tag, it will be ignored.

But new report gives a simple way when facing massive galaxy invasion, easier for galaxy defending.

ADD: Ninja flag Watch for single galaxy, used during single galaxy invasion. Set Ninja flag to 0, and target galaxy. default set to 1. (disable)

ae_report_bot.py

ADD: super user list, that can config bot setting

ADD: -参数 galaxyLower 'num' -参数 galaxyUpper 'num' Super users can use these two settings to config bot search range

ADD: -tsa To send location based report (simple report) to qq group for guild based galaxy defending.

UPDATES: 10/12/2018

  1. Moved code and reconstruct on moving_fleets_v2.py for aliyun instance

set: log_path

email

pass

galaxy_num (if needed)

2.updated qqbot:

now supports:

-帮助

which prints the current version of moving_fleets_v2.py

mods: requests, beatifulSoup,qqbot

How to use:

  1. open moving_fleets_v2.py change url_base to your server, now set to typhon change params email/pass to your account/password, eg: "email":"[email protected]" "pass":"yourpassword" scout galaxy now set to 20-29, you can change galaxy_num inside main() //poorly designed, will fix in later version check the write_to_file and write_to_log function to set path correctly

once its done, on terminal, file folder, ./moving_fleets.py to start the program.

the program will start scout galaxy T2x, once its done, it will creat a file named moving_fleets_report.txt in your path folder it will sleep for 5mins for another scout (block)

  1. connect to Tencent QQ for bot to auto report you need to install qqbot (pip3 install qqbot) refer to qqbot https://github.com/pandolia/qqbot for guide

copy the ae_report_bot.py file to qqbot plugin folder and run it as a qqbot plugin

it will automatically report to qq group "Astro Empire T服群", you can change this to your qq group the timer is set to 6 mins for auto report. support commands are -帮助 //this will list supportted command -hello //test the bot is running -报告 //reply for most recent scount report --stop //kill the bot

做个记录, 目前完成的功能是

  1. 每隔5分钟自动搜索T2x星系的偷鸡舰队
  2. 可在qq群通过偷鸡机器人查看相关报告
  3. 每6分钟检查一次是否有偷鸡舰队,如果有汇报,如果没有不汇报

0.4版本计划加入排眼功能,2x星系的ss

About

A auto scout and report bot (use Tencent QQ to report) for game Astro Empires

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages