xmexg / tgsetu

hentai robot,setu for telegram,tg涩图机器人,setubot,从 https://moe.jitsu.top/r18 获取一张色图发送到telegram
MIT License
7 stars 0 forks source link

tgsetu

Telegram的色图机器人

开始使用前

安装java

申请tg机器人

快速安装

  1. 下载jar文件
  2. cd到jar文件所在目录,使用 java -jar 文件名.jar 运行
  3. 初次运行会生成 config.json 配置文件,编辑该json文件并再次运行jar image

从源码构建

config.json配置文件

    {
    "tgBotName": "",
    "tgBotToken": "",
    "message": [
        {
            "type": "help",
            "keyWord": ["help", "/help", "start", "/start", "帮助", "/帮助"],
            "intro": "色图机器人 for telegram, 仓库地址: https://github.com/xmexg/tgsetu"
        },
        {
            "type": "image",
            "keyWord": ["/hentai", "hentai", "/setu", "setu", "色图", "涩图", "来点色图", "来点涩图", "来张色图", "来张涩图"],
            "url": "https://moe.jitsu.top/r18",
            "intro": "R18图"
        },
        {
            "type": "image",
            "keyWord": ["/bg", "bg", "二次元"],
            "url": "https://www.loliapi.com/bg/",
            "intro": "随机二次元图"
        },
        {
            "type": "image",
            "keyWord": ["/pc", "pc"],
            "url": "https://www.loliapi.com/acg/pc/",
            "intro": "二次元电脑图"
        },
        {
            "type": "image",
            "keyWord": ["/pe", "pe"],
            "url": "https://www.loliapi.com/acg/pe/",
            "intro": "二次元手机图"
        },
        {
            "type": "image",
            "keyWord": ["/tx", "tx", "头像"],
            "url": "https://www.loliapi.com/acg/pp/",
            "intro": "二次元头像"
        }
        ]
    }