Coder Social home page Coder Social logo

dota2_bot's Introduction

DOTA2的处刑BOT

介绍

在群友启动或退出游戏时向群里播报(可选)

(发行Steam API key的账号可能需要有监视对象的好友,否则获取不到游戏状态)

在群友打完一把游戏后, bot会向群里更新这局比赛的数据

DOTA2的数据来自于V社的官方API, 每日请求数限制100,000次

YYGQ的文来自于dota2_watcher

有任何建议可以发issue, 随缘更新

Windows下可以按照安装指南下载Windows版本的MiraiOK

我这两天找了一下没有合适的免费开源微信机器人, 所以可能不会有微信版本

一键脚本目前可能不太好用, 建议按照安装指南使用, 近期会发布一个更易于操作的版本一键脚本

一键脚本

  • 修改config.py来配置bot

  • chmod +x go.sh

  • bash go.sh

安装指南

  • 下载对应版本的miraiOK, 有hxd说下不动, 我传了个Linux64版本的度盘 提取码: 5trx

  • 运行一下miraiOK, 然后关闭, 会自动生成一个plugins文件夹

  • mirai-http-api里的release的jar扔进plugins文件夹

  • 通过screen -S bot && ./miraiOK_linux-amd64启动miraiOK, 登陆你的BOT账号, 这一步可能有一些登陆上的问题, 可以自行screen -r bot上去查看

  • 这里申请你的steam API key, 修改config.py中的api_key

  • 安装requests模块和json模块: pip install requests,json

  • 修改config.py来配置bot

  • 通过screen来后台运行: screen -S dota_bot, Windows可以直接运行miraiok

  • 运行run.py脚本来启动BOT: python3 run.py

后续计划

  • 丰富YYGQ内容(大家可以直接提交, 我会合并分支)

  • 发布release

dota2_bot's People

Contributors

sonodahanami avatar inv0k3r avatar gocross avatar

Forkers

pinkuburu

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.