BotCamel

command module
v0.0.0-...-e830d1d Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 39 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

项目归档:后续开发在OHSY247/BotCamel

调整开发方向

聊天机器人-BotCamel_V1.0

基于go-cqhttp实现-觉得有意思的话就star一下吧~ BotCamel_V0版本为基于mirai实现

go-cqhttp

go-cqhttp 源码在本地./go-cqhttp中,引用的本地源码,若go-cqhttp更新,直接进入文件夹git clone下载最新的源码即可,此文件夹可被删除覆盖

go-cqhttp作为本项目的submodule之一,clone时需要使用git clone git --recursive xxx.git

或者克隆后运行git submodule update --init --recursive

数据库

redis mysql等其他数据库需要额外启动,小项目,不需要

  • leveldb
    • 存储聊天记录
  • sqlite3-后序只使用sqlite3-不使用其他-支持数据导出
    • 代码里的所有sql语句是按照sqlite3来编写的-谨慎切换数据库
    • 存储诸如命运2数据等数据
    • 使用gorm进行链接-orm model管理数据库一点都不好用,淦!sql文件全放在apps\sqls
    • 原生sql进行curd,没使用模型
    • 使用leveldb作sqlite3的数据缓存
    • apps\utils\handler.go自定义数据库得操作-加日志打印

待开发:图片缓存?-现阶段存储在tmp文件夹下磁盘io读取

需求文档

欢迎任何人-领任务-fork-提pr请求

任务领取可发送到aboyinsky@ouotlook.com邮箱

需求概览

项目启动

输入自己的账号密码可以构建自己的机器人哦

项目首次初始化会生成命运2数据库文件

首次查询perk的相关物品会比较慢,第一次查询后会缓存在本地-定时刷新功能后序会开发

  • exe文件启动

    • 双击exe文件-第一次会生成一个config.hjson文件
    • 修改config.hjson文件中的uin password为自己机器人的qq和密码
    • 修改完文件后再次双击运行-即可运行机器人
    • 机器人已设置自动加群
    • apps\base_default.yaml配置对话
    • 有问题请在issue留言
  • go run 项目

    • 安装go(很简单百度就会了)
    • 安装gcc,数据库需要用(若没有数据库,无法使用命运2 的中文查询词条/武器功能)
    • 配置机器人qq账号密码
    • 安装谷歌浏览器;sudo apt-get install ttf-wqy-microhei ttf-wqy-zenhei xfonts-wqy中文乱码问题-下载字体
    • 启动命令:go run main.go 若没有配置文件会生成一个配置文件
    • config.hjson生成或者已存在-文件内填写qq账号密码;
    • apps\base_default.yaml配置对话
    • apps\destiny调用的接口
    • 若启动报错,尝试删除go.mod, go.sum文件,并运行go mod init github.com/StrayCamel247/BotCamel,再运行go run main.go启动
    • 若还是有问题请issue
    • 编译go build后点击exe文件即可后台运行

REFERENCE

对我有帮助和启发的项目都放在这里了 https://github.com/azmiao/destiny2_hoshino_plugin/

https://github.com/tianque1/Destiny2_bot

api授权 img

DEMO

  • version 1.3

    qq群聊演示

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Bot Camel
Bot Camel
destiny
周报-试炼等数据爬取b站数据
周报-试炼等数据爬取b站数据

Jump to

Keyboard shortcuts

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