Coder Social home page Coder Social logo

qq-valorant-bot's Introduction

QQ-Valorant-Bot

这是一个QQ频道的「Valorant」机器人

python commit release khl server githubstars

1.当前支持的命令

目前为初始版本,调用 kook-valorant-bot 的画图Api移植而来;

Cmd Function available
/ahri or /help 帮助命令 公屏私聊可用
/login account passwd 登录 riot 账户 仅私聊
/tfa verify-code 提供邮箱验证码 仅私聊
/login-l 查看已登录账户 仅私聊
/shop 查询每日商店 公屏私聊可用
/uinfo 查询 vp,rp,用户等级 公屏私聊可用

QQ频道特色,所有命令在公频使用的时候,需要先at机器人

login

shop

2.依赖项

BOT采用官方提供的 Python sdk

pip install qq-botpy

sdk使用示例请查看官方git仓库 qq-botpy 中的的example

EzAuth登录类已重写,拳头cookie重登不再依赖于 floxay/python-riot-auth

2.1 config

要想使用本bot,请在 code/config 目录下创建 config.json 文件

{
  "bot":{
      "appid": "机器人appid",
      "token": "机器人token",
      "val_api_url": "https://val.musnow.top/api/v2",
      "val_api_token": "val_api_token",
      "master_id":"机器人开发者id"
  },
  "guild":{}
}

其中 val_api_token 的获取详见 valorant-api-docs

guild 字段的作用,是用于设置某一个频道只允许某几个频道使用机器人。如果服务器id不在此字段内,则不会进行限制,所有子频道都能私聊机器人。若需要限制,必须修改配置文件

比如,频道id xxxxx 的腐竹,只允许用户在子频道id abcdefg 中使用机器人,则可以按如下配置。

"guild":{
  "xxxxx":[
    "abcd",
    "efg"
  ]
}

更多 config 文件的字段,可直接查看示例文件 config.exp.json

2.2 log

Bot运行时需要多个依赖项文件,完整的文件列表详见 Files

需要的文件均和kook机器人需要的文件同名,参考 code/config/log.exp,将该文件夹内的示例文件移入 ./code/log 文件夹即可。

有任何问题,请加入我的kook频道,或阿狸bot的qq频道与我联系。

支持本项目😘

阿狸的支出主要为云服务器的费用,您的支持是对作者的最大鼓励!

aifadian

qq-valorant-bot's People

Contributors

musnows avatar

Stargazers

bluish avatar

Watchers

 avatar

qq-valorant-bot's Issues

请问是否有QQ群的部署方法

因为本人手机使用的tim,没有QQ频道,只能在QQ群查询,本人有一台本地服务器,可以搭建在直接服务器进行查询详细,可以的话留个联系方式QQ2368343278

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.