ShionBot

command module
v1.0.0-beta.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 13 Imported by: 0

README

中文 | English | 日本語

logo

ShionBot

通过聊天软件对MediaWiki进行信息查询的机器人 可以对使用聊天软件对MediaWiki搭建的站点进行信息查询,支持多种语言,跨平台兼容,支持QQ,Telegram,Line,KaiHeiLa

基于Gin和mirai-api-http制作

项目目前处于开发阶段,存在很多问题,请自行判断使用场景是否合适
因为本人水平有限,代码质量不高,如果让你感到不适,我很抱歉

如何使用

使用说明请前往官网查看

如果你有对项目有什么疑问,欢迎加入QQ群询问

🌐 多语言适配

多语言适配进度:

  • zh-CN(中文/简体)
  • zh-HK(中文/香港)
  • en-US(English)
  • ja-JP(日本語)
  • ru_RU(русский язык)

如果您希望为本项目增加更多语言,请fork仓库后在resources/language目录下建立目标语言文件,完成翻译后可以请求提交至主仓库

🎐 鸣谢

感谢大佬们对这个项目的支持
排名不分先后

  1. SuperYYT
    英语翻提供译者
  2. java23333
    日语翻译提供者

Documentation

Overview

* @Author: NyanCatda * @Date: 2021-10-03 00:51:57 * @LastEditTime: 2022-03-07 18:55:19 * @LastEditors: NyanCatda * @Description: 主文件 * @FilePath: \ShionBot\main.go

Directories

Path Synopsis
Controller
MediaWikiAPI
* @Author: NyanCatda * @Date: 2021-10-12 16:10:33 * @LastEditTime: 2022-03-07 19:01:47 * @LastEditors: NyanCatda * @Description: MediaWiki OpensearchAPI封装 * @FilePath: \ShionBot\Controller\MediaWikiAPI\Opensearch.go * @Author: NyanCatda * @Date: 2021-10-03 20:50:06 * @LastEditTime: 2022-03-07 19:01:59 * @LastEditors: NyanCatda * @Description: MediaWiki查询类API封装 * @FilePath: \ShionBot\Controller\MediaWikiAPI\Query.go
* @Author: NyanCatda * @Date: 2021-10-12 16:10:33 * @LastEditTime: 2022-03-07 19:01:47 * @LastEditors: NyanCatda * @Description: MediaWiki OpensearchAPI封装 * @FilePath: \ShionBot\Controller\MediaWikiAPI\Opensearch.go * @Author: NyanCatda * @Date: 2021-10-03 20:50:06 * @LastEditTime: 2022-03-07 19:01:59 * @LastEditors: NyanCatda * @Description: MediaWiki查询类API封装 * @FilePath: \ShionBot\Controller\MediaWikiAPI\Query.go
MessageProcessing
* @Author: NyanCatda * @Date: 2021-11-15 17:23:29 * @LastEditTime: 2022-03-07 18:50:11 * @LastEditors: NyanCatda * @Description: KaiHeiLa 消息处理 * @FilePath: \ShionBot\Controller\MessageProcessing\KaiHeiLaMessageProcessing.go * @Author: NyanCatda * @Date: 2021-11-05 23:42:17 * @LastEditTime: 2022-01-27 18:17:39 * @LastEditors: NyanCatda * @Description: Line消息处理 * @FilePath: \ShionBot\src\MessageProcessing\LineMessageProcessing.go * @Author: NyanCatda * @Date: 2021-10-03 05:25:31 * @LastEditTime: 2022-01-27 18:17:20 * @LastEditors: NyanCatda * @Description: QQ消息处理 * @FilePath: \ShionBot\src\MessageProcessing\QQMessageProcessing.go * @Author: NyanCatda * @Date: 2021-11-04 22:09:03 * @LastEditTime: 2022-01-27 18:05:47 * @LastEditors: NyanCatda * @Description: Telegram消息处理 * @FilePath: \ShionBot\src\MessageProcessing\TelegramMessageProcessing.go
* @Author: NyanCatda * @Date: 2021-11-15 17:23:29 * @LastEditTime: 2022-03-07 18:50:11 * @LastEditors: NyanCatda * @Description: KaiHeiLa 消息处理 * @FilePath: \ShionBot\Controller\MessageProcessing\KaiHeiLaMessageProcessing.go * @Author: NyanCatda * @Date: 2021-11-05 23:42:17 * @LastEditTime: 2022-01-27 18:17:39 * @LastEditors: NyanCatda * @Description: Line消息处理 * @FilePath: \ShionBot\src\MessageProcessing\LineMessageProcessing.go * @Author: NyanCatda * @Date: 2021-10-03 05:25:31 * @LastEditTime: 2022-01-27 18:17:20 * @LastEditors: NyanCatda * @Description: QQ消息处理 * @FilePath: \ShionBot\src\MessageProcessing\QQMessageProcessing.go * @Author: NyanCatda * @Date: 2021-11-04 22:09:03 * @LastEditTime: 2022-01-27 18:05:47 * @LastEditors: NyanCatda * @Description: Telegram消息处理 * @FilePath: \ShionBot\src\MessageProcessing\TelegramMessageProcessing.go
MessagePushAPI
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-01-24 21:12:06 * @LastEditors: NyanCatda * @Description: 消息发送封装 * @FilePath: \ShionBot\src\MessagePushAPI\SendMessage.go
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-01-24 21:12:06 * @LastEditors: NyanCatda * @Description: 消息发送封装 * @FilePath: \ShionBot\src\MessagePushAPI\SendMessage.go
MessagePushAPI/SNSAPI
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-01-24 20:03:33 * @LastEditors: NyanCatda * @Description: 聊天软件API封装 * @FilePath: \ShionBot\src\MessagePushAPI\SNSAPI\SNSAPI.go
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-01-24 20:03:33 * @LastEditors: NyanCatda * @Description: 聊天软件API封装 * @FilePath: \ShionBot\src\MessagePushAPI\SNSAPI\SNSAPI.go
MessagePushAPI/SNSAPI/KaiHeiLaAPI
* @Author: NyanCatda * @Date: 2021-11-15 17:23:29 * @LastEditTime: 2022-03-07 19:02:23 * @LastEditors: NyanCatda * @Description: KaiHeiLa API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\KaiHeiLaAPI\KaiHeiLaAPI.go
* @Author: NyanCatda * @Date: 2021-11-15 17:23:29 * @LastEditTime: 2022-03-07 19:02:23 * @LastEditors: NyanCatda * @Description: KaiHeiLa API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\KaiHeiLaAPI\KaiHeiLaAPI.go
MessagePushAPI/SNSAPI/LineAPI
* @Author: NyanCatda * @Date: 2021-11-05 23:42:17 * @LastEditTime: 2022-03-07 19:03:28 * @LastEditors: NyanCatda * @Description: Line API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\LineAPI\LineAPI.go
* @Author: NyanCatda * @Date: 2021-11-05 23:42:17 * @LastEditTime: 2022-03-07 19:03:28 * @LastEditors: NyanCatda * @Description: Line API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\LineAPI\LineAPI.go
MessagePushAPI/SNSAPI/QQAPI
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-03-07 19:04:32 * @LastEditors: NyanCatda * @Description: Session处理API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\QQAPI\SessionKey.go * @Author: NyanCatda * @Date: 2021-11-05 18:12:19 * @LastEditTime: 2022-01-24 21:20:31 * @LastEditors: NyanCatda * @Description: QQ API定时器 * @FilePath: \ShionBot\src\MessagePushAPI\SNSAPI\QQAPI\StartQQAPI.go
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-03-07 19:04:32 * @LastEditors: NyanCatda * @Description: Session处理API * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\QQAPI\SessionKey.go * @Author: NyanCatda * @Date: 2021-11-05 18:12:19 * @LastEditTime: 2022-01-24 21:20:31 * @LastEditors: NyanCatda * @Description: QQ API定时器 * @FilePath: \ShionBot\src\MessagePushAPI\SNSAPI\QQAPI\StartQQAPI.go
MessagePushAPI/SNSAPI/TelegramAPI
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-03-07 19:04:56 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\TelegramAPI\TelegramAPI.go
* @Author: NyanCatda * @Date: 2021-11-05 13:51:15 * @LastEditTime: 2022-03-07 19:04:56 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\Controller\MessagePushAPI\SNSAPI\TelegramAPI\TelegramAPI.go
API
* @Author: NyanCatda * @Date: 2021-11-06 21:49:39 * @LastEditTime: 2022-03-07 19:51:39 * @LastEditors: NyanCatda * @Description: 查询Wiki信息 * @FilePath: \ShionBot\HttpAPI\API\Query.go
* @Author: NyanCatda * @Date: 2021-11-06 21:49:39 * @LastEditTime: 2022-03-07 19:51:39 * @LastEditors: NyanCatda * @Description: 查询Wiki信息 * @FilePath: \ShionBot\HttpAPI\API\Query.go
* @Author: NyanCatda * @Date: 2021-11-17 23:26:04 * @LastEditTime: 2021-12-31 11:28:20 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Modular.go
* @Author: NyanCatda * @Date: 2021-11-17 23:26:04 * @LastEditTime: 2021-12-31 11:28:20 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Modular.go
Command
* @Author: NyanCatda * @Date: 2021-11-17 15:37:34 * @LastEditTime: 2022-03-07 18:50:31 * @LastEditors: NyanCatda * @Description: Wiki命令操作 * @FilePath: \ShionBot\Modular\Command\CustomWiki.go * @Author: NyanCatda * @Date: 2021-11-22 20:54:44 * @LastEditTime: 2022-01-24 19:52:27 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Command\ImportData.go * @Author: NyanCatda * @Date: 2021-11-19 12:06:48 * @LastEditTime: 2022-01-24 19:52:38 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Command\UserInfo.go * @Author: NyanCatda * @Date: 2021-11-19 12:06:48 * @LastEditTime: 2022-01-24 19:36:56 * @LastEditors: NyanCatda * @Description: 用户信息命令处理 * @FilePath: \ShionBot\src\Modular\Command\UserInfo.go
* @Author: NyanCatda * @Date: 2021-11-17 15:37:34 * @LastEditTime: 2022-03-07 18:50:31 * @LastEditors: NyanCatda * @Description: Wiki命令操作 * @FilePath: \ShionBot\Modular\Command\CustomWiki.go * @Author: NyanCatda * @Date: 2021-11-22 20:54:44 * @LastEditTime: 2022-01-24 19:52:27 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Command\ImportData.go * @Author: NyanCatda * @Date: 2021-11-19 12:06:48 * @LastEditTime: 2022-01-24 19:52:38 * @LastEditors: NyanCatda * @Description: * @FilePath: \ShionBot\src\Modular\Command\UserInfo.go * @Author: NyanCatda * @Date: 2021-11-19 12:06:48 * @LastEditTime: 2022-01-24 19:36:56 * @LastEditors: NyanCatda * @Description: 用户信息命令处理 * @FilePath: \ShionBot\src\Modular\Command\UserInfo.go
GetWikiInfo
* @Author: NyanCatda * @Date: 2021-10-03 02:14:31 * @LastEditTime: 2022-03-07 19:50:40 * @LastEditors: NyanCatda * @Description: 获取Wiki页面信息 * @FilePath: \ShionBot\Modular\GetWikiInfo\GetWikiInfo.go
* @Author: NyanCatda * @Date: 2021-10-03 02:14:31 * @LastEditTime: 2022-03-07 19:50:40 * @LastEditors: NyanCatda * @Description: 获取Wiki页面信息 * @FilePath: \ShionBot\Modular\GetWikiInfo\GetWikiInfo.go
* @Author: NyanCatda * @Date: 2021-11-03 15:59:39 * @LastEditTime: 2022-01-24 19:33:48 * @LastEditors: NyanCatda * @Description: 文件处理工具 * @FilePath: \ShionBot\src\Utils\FilesAndDirs.go
* @Author: NyanCatda * @Date: 2021-11-03 15:59:39 * @LastEditTime: 2022-01-24 19:33:48 * @LastEditors: NyanCatda * @Description: 文件处理工具 * @FilePath: \ShionBot\src\Utils\FilesAndDirs.go
Language
* @Author: NyanCatda * @Date: 2021-11-02 20:10:28 * @LastEditTime: 2022-01-24 19:52:03 * @LastEditors: NyanCatda * @Description: 语言文件处理 * @FilePath: \ShionBot\src\Utils\Language\Language.go
* @Author: NyanCatda * @Date: 2021-11-02 20:10:28 * @LastEditTime: 2022-01-24 19:52:03 * @LastEditors: NyanCatda * @Description: 语言文件处理 * @FilePath: \ShionBot\src\Utils\Language\Language.go
ReadConfig
* @Author: NyanCatda * @Date: 2022-01-24 19:35:15 * @LastEditTime: 2022-03-07 19:48:36 * @LastEditors: NyanCatda * @Description: 配置文件结构体 * @FilePath: \ShionBot\Utils\ReadConfig\ConfigStruct.go * @Author: NyanCatda * @Date: 2021-10-03 04:14:10 * @LastEditTime: 2022-03-07 19:50:26 * @LastEditors: NyanCatda * @Description: 读取配置文件 * @FilePath: \ShionBot\Utils\ReadConfig\ReadConfig.go
* @Author: NyanCatda * @Date: 2022-01-24 19:35:15 * @LastEditTime: 2022-03-07 19:48:36 * @LastEditors: NyanCatda * @Description: 配置文件结构体 * @FilePath: \ShionBot\Utils\ReadConfig\ConfigStruct.go * @Author: NyanCatda * @Date: 2021-10-03 04:14:10 * @LastEditTime: 2022-03-07 19:50:26 * @LastEditors: NyanCatda * @Description: 读取配置文件 * @FilePath: \ShionBot\Utils\ReadConfig\ReadConfig.go
SQLDB
* @Author: NyanCatda * @Date: 2022-01-24 21:37:39 * @LastEditTime: 2022-01-24 21:42:09 * @LastEditors: NyanCatda * @Description: 数据库模型 * @FilePath: \ShionBot\src\Utils\SQLDB\Models.go
* @Author: NyanCatda * @Date: 2022-01-24 21:37:39 * @LastEditTime: 2022-01-24 21:42:09 * @LastEditors: NyanCatda * @Description: 数据库模型 * @FilePath: \ShionBot\src\Utils\SQLDB\Models.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL