2 Star 8 Fork 1

祁雪 / LSE QBot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 5.83 KB
一键复制 编辑 原始数据 按行查看 历史

LSE QBot

介绍

基于 simbot 实现得QQ机器人

软件架构

kotlin + spring boot + mybatis plus + redis



├─kotlin
│  └─com
│      └─bot
│          │  LseBotApplication.kt
│          │  
│          ├─async  ->  线程池包
│          │      AsyncPub.kt
│          │      
│          ├─component  -> 自定义组件
│          │  │  Slf4j.kt
│          │  │  
│          │  ├─bot_permissions  ->  权限管理包
│          │  │  │  FunVerify.kt
│          │  │  │  FunVerifyAspect.kt
│          │  │  │  FunVerifyDefaultKey.kt
│          │  │  │  MsgSendInFunVerify.kt
│          │  │  │  
│          │  │  └─strategy
│          │  │          FunPermissionsSetUp.kt
│          │  │          FunSwitchPermissions.kt
│          │  │          GroupMsgSwitchSt.kt
│          │  │          GroupRecallMsgSt.kt
│          │  │          MsgGetSt.kt
│          │  │          PrivateMsgSwitchSt.kt
│          │  │          PrivateRecallMsgSt.kt
│          │  │          RecallMsgSt.kt
│          │  │          
│          │  └─timing  ->  定时任务包
│          │          TimingManager.kt
│          │          
│          ├─config  ->  配置
│          │  │  FileMultipartConfig.kt
│          │  │  ImageFolderConfig.kt
│          │  │  InitParams.kt
│          │  │  MiraiMessageCache.kt
│          │  │  MybatisPlusConfig.kt
│          │  │  ZodiacInitConfig.kt
│          │  │  
│          │  ├─async
│          │  │      AsyncConfig.kt
│          │  │      
│          │  ├─interceptor
│          │  │      CrossInterceptorConfig.kt
│          │  │      InterceptorConfig.kt
│          │  │      
│          │  └─redis
│          │          RedisConfig.kt
│          │          
│          ├─dto  ->  数据库实体映射
│          │      BotManager.kt
│          │      DrawLot.kt
│          │      FunSwitch.kt
│          │      GroupBotFunSwitch.kt
│          │      WyAccount.kt
│          │      ZolXh.kt
│          │      
│          ├─entity  ->  实体包
│          │  │  TBRebate.kt
│          │  │  
│          │  ├─new_tt
│          │  │      TTHot.kt
│          │  │      TTNew.kt
│          │  │      
│          │  ├─qq_music
│          │  │      Album.kt
│          │  │      Midurlinfo.kt
│          │  │      Singer.kt
│          │  │      Song.kt
│          │  │      
│          │  └─wy
│          │          AccountInfo.kt
│          │          WYSearchSong.kt
│          │          WYSearchSongAl.kt
│          │          WYSearchSongAr.kt
│          │          
│          ├─exception  -> 自定义异常包
│          │      FunVerifyException.kt
│          │      LseException.kt
│          │      
│          ├─listenter -> 机器人监听包
│          │      AdminListener.kt  -> 管理员
│          │      DYVideoListener.kt  -> 抖音视频获取监听(发行版本未使用)
│          │      MusicListener.kt  -> 网易云音乐
│          │      QQListener.kt  ->  其他功能监听
│          │      QQMusicListenter.kt  -> QQ音乐
│          │      RecallMsgListener.kt  -> 消息撤回监听
│          │      TBRebateListener.kt  ->  淘宝优惠券查询(发行版本未使用)
│          │      TTListener.kt  ->  今日头条新闻
│          │      XHListenter.kt  ->  笑料趣图
│          │      
│          ├─mapper -> 数据库mapper
│          │  │  BotManagerMapper.kt
│          │  │  DrawLotMapper.kt
│          │  │  FunSwitchMapper.kt
│          │  │  GroupBotFunSwitchMapper.kt
│          │  │  WyAccountMapper.kt
│          │  │  ZolXhMapper.kt
│          │  │  
│          │  └─xml
│          │          BotManagerMapper.xml
│          │          DrawLotMapper.xml
│          │          FunSwitchMapper.xml
│          │          GroupBotFunSwitchMapper.xml
│          │          WyAccountMapper.xml
│          │          ZolXhMapper.xml
│          │          
│          ├─service -> 数据库service
│          │  │  BotManagerService.kt
│          │  │  DrawLotService.kt
│          │  │  FunSwitchService.kt
│          │  │  GroupBotFunSwitchService.kt
│          │  │  WyAccountService.kt
│          │  │  ZolXhService.kt
│          │  │  
│          │  └─impl
│          │          BotManagerServiceImpl.kt
│          │          DrawLotServiceImpl.kt
│          │          FunSwitchServiceImpl.kt
│          │          GroupBotFunSwitchServiceImpl.kt
│          │          WyAccountServiceImpl.kt
│          │          ZolXhServiceImpl.kt
│          │          
│          └─utils -> 工具类包

└─resources -> 资源文件

    └─fonts -> 模板字体文件

目前已实现的客户端功能

menu

管理员功能位于 listenter 包下 AdminListenter.kt 中

  1. 功能ID + (on|off)
功能开关
群聊: 该群功能的开关
私聊: 该功能的总开关
  1. (设置|取消)@XX管理员
 群聊: 设置某人为机器人功能管理员

2021-08-07

功能:朗读+内容词

注意事项:该功能需要在windows环境下运行并且需要环境变量配置 resource/lib/jacob-1.17-M2 文件夹

Kotlin
1
https://gitee.com/LSE_QX/lse-qbot.git
git@gitee.com:LSE_QX/lse-qbot.git
LSE_QX
lse-qbot
LSE QBot
master

搜索帮助