Git Product home page Git Product logo

yuribot's Introduction

由于代码写的太烂,该项目正在使用 Kotlin 重构中 ···

如果您对该项目感兴趣请移步至 Yuri-Kotlin

YuriBot

stars forks issues downloads license jdk-version qq-group

Features

  • 一言
  • 复读姬
  • HttpCat
  • 色图time (
  • WhatAnime 搜番
  • SauceNao 搜图
  • AnimeThesaurus
  • 入群欢迎与退群提醒
  • 彩虹六号游戏战绩查询
  • 群组消息批量推送
  • 解析哔哩哔哩小程序
  • av号与bv号互相转换
  • Telegram消息转发至QQ [已移除]
  • 区块链虚拟货币信息查询 [已移除]
  • 逆转裁判字体风格图片生成
  • Steam Rep信息查询
  • 撤回含有敏感词的消息

Install Maven For Centos

wget http://mirrors.hust.edu.cn/apache/maven/maven-3/3.6.3/binaries/apache-maven-3.6.3-bin.tar.gz
tar -zxvf  apache-maven-3.6.3-bin.tar.gz
# Rename dir
mv apache-maven-3.6.3 maven
# Edit /etc/profile add
export MAVEN_HOME=/root/maven
export PATH=$MAVEN_HOME/bin:$PATH
# Update profile
source /etc/profile
# Check mvn install success
mvn -version

Build Jar Package

# Get source
git clone https://github.com/MisakaTAT/YuriBot.git
# Build and skip test
mvn clean package -Dmaven.test.skip=true
# Output to target dir
java -jar YuriBot-main/target/Yuri-Bot-v1.0.1-Alpha.jar
# The first run generates a default config file (you can custom this config file)
vim config.json

Config File

点击查看详细内容
  
// 这是一个配置文件示例,首次运行将在目录下生成config.json,请根据实际需求修改
{
    "server": {
        // 运行地址
        "address": "127.0.0.1",
        // 运行端口
        "port": 5000
    },
    // 一言
    "hitokoto": {
        // 冷却时间,单位秒
        "cdTime": 10
    },
    "bot": {
        // Bot名
        "botName": "悠里",
        // 管理员QQ
        "adminId": 0,
        // Bot QQ
        "selfId": 0
    },
    "prefix": {
        // 指令前缀
        "prefix": "."
    },
    "setu": {
        // 色图ApiKey
        "apiKey": "Api Key Value",
        // 冷却时间,单位秒
        "cdTime": 120,
        // 撤回时间,单位秒
        "delTime": 30,
        // 每日上限
        "maxGet": 15
    },
    "repeat": {
        // 复读阈值
     "randomCountSize": 5
    },
    "banUtils": {
        // 搜图搜番时间阈值,单位秒
        "limitTime": 30,
        // 时间阈值最大发送图片数量
        "limitCount": 10
    },
    "sauceNao": {
        // SauceNao Api Key
        "apiKey": "Api Key Value"
    }
}

Credits

Client Connect

修改目录下生成的 config.json(也可使用默认值)

{
  "server": {
    "address": "127.0.0.1",
    "port": 5000
  }
}

配置反向WebSocket

以go-cqhttp为例 修改config.yaml如下参数

- ws-reverse:
    universal: ws://127.0.0.1:5000/ws/shiro

License

MIT License

Copyright (c)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Thanks

Thanks JetBrains Provide Free License Support OpenSource Project

yuribot's People

Contributors

dependabot[bot] avatar misakatat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yuribot's Issues

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.