全部 / 技术交流 · 2022年12月22日

千秋(AI)项目主页

本文最后更新于 463 天前,其中的信息可能已经有所发展或改变。
bot
千秋Bot

一个专为主机游戏爱好者定制的Bot

本项目基于Koishi、Go-cqhttp、Onebot框架。

运行环境:
 Ubuntu 22.10 x64、1 vCPU、1GB RAM。

GitHub - botuniverse/onebot: OneBot:统一的聊天机器人应用接口标准
OneBot:统一的聊天机器人应用接口标准. Contribute to botuniverse/onebot development by creating an account on GitHub.
github.com
GitHub - Mrs4s/go-cqhttp: cqhttp的golang实现,轻量、原生跨平台.
cqhttp的golang实现,轻量、原生跨平台. Contribute to Mrs4s/go-cqhttp development by creating an account on GitHub.
github.com
GitHub - koishijs/koishi: Cross-platform chatbot framework made with love
Cross-platform chatbot framework made with love. Contribute to koishijs/koishi development by creating an account on GitHub.
github.com

使用方法:

  • 添加Bot QQ:2571901336
  • 目前自动通过好友请求、加群请求需要审批

功能与指令:

  • Bot已对接OpenAi语言模型,人设为超高校级的游戏玩家,在群内与她聊天时,只需加上千秋的前缀。示例:
  • Bot已对接Novelai绘画模型,输入指令rr+图片描述(英文)。示例:
  • Bot已对接wolfram-alpha ,输入alpha+问题即可使用Alpha搜索。示例:
  • 作为主机爱好者的Bot,你可以发送新闻指令获取每日最新游戏新闻。示例:
  • 为达到全自动水群,Bot设置了三个定时任务,分别在每天10点推送摸鱼人日历(可手动输入指令“摸了”与每日新闻,每周四12点自动推送疯狂星期四文案。
  • 群空调功能:aircon -h即可查看全部指令
  • 每日随机老婆,输入老婆即可在群内挑选幸运群友
  • 常见问题的解答(Switch家庭会员、长沙哪里可以修主机、附件的电玩店等等)
  • 对常见的人身攻击词汇进行警告,多次不听直接踢出。
  • 复读功能,群内消息重复消息超过三次会自动复读。
  • 斯普拉遁3日程查询,发送喷喷、打工、商店来查询对应日程
  • 新增功能:“daily”呼出游戏史上的今天;“发售”呼出近期的游戏发售表。
示例

新增功能:Steam游戏库查询。

  • 使用“查询 游戏名称”即可检索对应游戏appid
  • 使用“id appid”即可查找对应游戏详细信息
  • 当输入名称包含中文时,使用bing翻译API自动翻译
  • 但检索的游戏唯一时,自动返回该游戏的消息信息
  • 支持自行配置检索范围
示例
  • 入群欢迎
  • 新增功能“订阅提醒”,用法:
  • 订阅Epic喜+1提醒,当Epic商店免费游戏上新时,将会自动发送相关信息。你也可以使用命令“epic”手动获取免费游戏。
  • 订阅PS+会免、XGP入库提醒,当PS+会免、XGP入库更新时,将会自动发送相关信息。

  • 更多功能开发中...

下面是我写的一些插件:

每日游戏新闻

koishi-plugin-gamenews - npm
每日主机游戏新闻资讯. Latest version: 1.3.2, last published: a day ago. Start using koishi-plugin-gamenews in your project by running `npm i koishi-plugin-gamenews`. There are no other projects in the npm registry using koishi-plugin-gamenews.
www.npmjs.com
# Koishi-plugin-gamenews

### 每日新闻资讯插件

::: info
使用命令新闻即可发送最新游戏新闻

使用<https://www.mxnzp.com/doc/detail?id=12> API

:::

### 使用方法

* 预先安装axios环境 npm install axios
* Release下载最新版本插件
* 上传至Koishi插件所在路径(或是Docker镜像内),一般位于/koishi/plugins
* 解压后自动创建Koishi-plugin-gamenews文件夹
* 进入lib文件夹修改index.js文件
* 进入Koishi后台-配置插件-添加插件-启用

### 配置方法

* 在index.js中配置自己的APPID与APP SERCERT,前往[申请](https://www.mxnzp.com/doc/detail?id=12%20)
* Api1默认参数typeId=515&page=1,可以安装需求修改类别与页数
* 返回参数默认content与source
* 完整返回参数示例

### 已知问题

* 更多功能开发中...
Markdown

斯普拉遁3日程查询

koishi-plugin-splatoon - npm
斯普拉顿3日程查询. Latest version: 1.0.0, last published: 8 days ago. Start using koishi-plugin-splatoon in your project by running `npm i koishi-plugin-splatoon`. There are no other projects in the npm registry using koishi-plugin-splatoon.
www.npmjs.com
# Koishi-plugin-splatoon

### 斯普拉顿3日程查询插件

::: info

使用<https://urlscan.io/liveshot> API

:::

### 使用方法
* 喷喷 发送涂地、真格、x段日程
* 打工 发送打工日程
* 商店 查询商店售卖的装备
Markdown

游戏今昔史与发售表

koishi-plugin-dailygames - npm
查看游戏今昔史与近期的发售表. Latest version: 1.0.0, last published: 23 minutes ago. Start using koishi-plugin-dailygames in your project by running `npm i koishi-plugin-dailygames`. There are no other projects in the npm registry using koishi-plugin-dailygames.
www.npmjs.com
# koishi-plugin-dailygames

### 游戏史与发售表差距

+ 使用命令`daily`即可跳转出“游戏史上的今天”;
+ 使用命令`发售`即可跳转出近日的游戏发售表;
+ 使用的[Vgtime](http://app02.vgtime.com:8080/vgtime-app/api/v3/launch/wallpaper_today)API。
+ Api为APP内抓包获取,如果有版权问题可以联系下架。
Markdown

Steam游戏查询

koishi-plugin-steaminfo - npm
查询Steam游戏信息,包括折扣、简介、截图等. Latest version: 0.0.2, last published: 7 minutes ago. Start using koishi-plugin-steaminfo in your project by running `npm i koishi-plugin-steaminfo`. There are no other projects in the npm registry using koishi-plugin-steaminfo.
www.npmjs.com
# koishi-plugin-steaminfo

### 查询Steam游戏信息
#### 基本用法
+ 使用命令`查询 游戏名`查找需要游戏的appid。
+ 输入对应的查找具体的游戏信息。

#### 插件特性
+ 支持中文翻译功能,内置Bing翻译以及koishi提供的翻译服务。
+ 支持中文检索、模糊检索,爬取Vgtime网页进行解析,**注:中文检索需要安装cheerio**
+ 支持以api的方式单独筛选出游戏本体。
+ 英文检索方式为正则匹配`\\b(${text.split(' ').join('.*')})\\b`, 'i'
+ 检测到用户发送查询命令后,将监听该用户发送到下一条信息,提取其中的数字进行详细查询。
+ 经过测试,Steam游戏的不同地区售价需要对应的Cookie,请自行抓取Cookie填入,默认货币为美元。
+ 管理员可以自行配置需要查询的条目、设置过滤的词条,例如soundtrack、dlc、guide等等。
+ 本插件未来将持续更新,下次更新预告:Steam促销游戏精选。

#### 支持
+ 欢迎感兴趣的大佬完善这个插件,可以发送邮件me@hiripple.com与我联系。
+ [作者博客](https://hiripple.com/)
Markdown

入群欢迎

koishi-plugin-simple-welcome - npm
简单的欢迎群友插件. Latest version: 1.0.0, last published: 3 minutes ago. Start using koishi-plugin-simple-welcome in your project by running `npm i koishi-plugin-simple-welcome`. There are no other projects in the npm registry using koishi-plugin-simple-welcome.
www.npmjs.com
# koishi-plugin-simple-welcome
### 简单的欢迎插件
+ 进入koishi控制台即可配置
Markdown

bing翻译服务

steaminfo

从steaminfo里单独搓出来的bing服务。

koishi-plugin-translator-bing - npm
提供bing翻译服务. Latest version: 1.0.0, last published: 15 minutes ago. Start using koishi-plugin-translator-bing in your project by running `npm i koishi-plugin-translator-bing`. There are no other projects in the npm registry using koishi-plugin-translator-bing.
www.npmjs.com

订阅提醒

无需数据库的RSS订阅实现

koishi-plugin-freegames-subscribe - npm
**订阅Epic喜+1、PS+每月会免、XGP入库提醒,任何有关游戏的news!**简洁、轻量的RSS订阅实现,无需puppeteer、无需数据库~. Latest version: 1.0.0, last published: 7 minutes ago. Start using koishi-plugin-freegames-subscribe in your project by running `npm i koishi-plugin-freegames-subscribe`. There are no other projects in the npm registry using koishi-plugin-freegames-subscribe.
www.npmjs.com

现在是2023.3.14,距离项目开始已经过了约4个月,祝千秋生日快乐的同时也是时候让它告一段落了,此后bot将逐渐停止更新。