Skip to content

A hoshino module to update dota2 match outcomes in QQ.

Notifications You must be signed in to change notification settings

joeyHXD/dota2_watcher_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DOTA2的处刑BOT,hoshino插件版

魔改自: https://github.com/greenhaha/dota2_csgo_watcher_bot

在此之上添加了直接从QQ群添加刀塔玩家的功能, 以及对每个QQ群分别播放各自的战绩

注意!!!!! 7.36版本后steam API的GetMatchDetails无法使用,main branch代码目前无法获取对局详情

更新/测试中...

update branch里面尝试使用OpenDotaAPI作为7.36版本的替代,目前已经可以正常使用

介绍

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

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

这是一个hoshino机器人的插件,需要添加到hoshino本体里才能运行

搭建hoshino机器人请参考Hoshino开源Project

添加玩家: 添加刀塔玩家 [玩家昵称] [steam的id]

安装指南

  1. clone本插件: 在 HoshinoBot\hoshino\modules 目录下使用以下命令拉取本项目
  2. git clone https://github.com/joeyHXD/dota2_watcher_bot.git
  3. HoshinoBot\hoshino\config\bot.py 文件的 MODULES_ON 加入 Dota2_watcher_bot,
  4. http://steamcommunity.com/dev/apikey 申请你的steam API key, 修改run.py中的api_key
  5. 然后重启 HoshinoBot,并在想要使用的QQ群里输入指令 启用 dota-poller2 或者 enable dota-poller2
  6. 添加玩家: `添加刀塔玩家 [玩家昵称] [steam的id]

如: 添加刀塔玩家 袋鼠 239534621

然后就可以打一把快乐的刀塔试试效果啦!

运行效果

具体可以看 https://github.com/greenhaha/dota2_csgo_watcher_bot

后续计划

  • 整合一下,做一个config_sample方便调各种参数 (update branch测试中)
  • 可选择是否播报加速/OMG/活动等模式 (update branch测试中)
  • 可选择开启/关闭某些玩家的战绩播放 (update branch测试中)

About

A hoshino module to update dota2 match outcomes in QQ.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages