Giter Site home page Giter Site logo

rssqtsend's Introduction

RssQTsend

将订阅的RSS/Feed消息通过机器人发送到QQ频道

支持

支持的rss服务器

支持的机器人框架

支持解析的Rss内容

RSSHUB
  • bilibili用户动态(bilibili/user/dynamic/)
  • bilibili标签(bilibili/topic/)
  • bilibili漫画(bilibili/manga/update/)
  • Twitter推文(twitter/user/)
  • 百度贴吧(tieba/forum/)
  • Lofter标签(lofter/tag/)
  • Pixiv标签(pixiv/search/)
  • 漫画柜(manhuagui/comic/)
  • FANBOX(fanbox/)
  • Youtube(youtube/channel/)
  • 新浪微博标签(weibo/keyword/)
  • 新浪微博超话(weibo/super_index/)
feedrinse
  • YouTube
fetchrss
  • MyFigureCollection
其他

支持解析的Feed内容

如果有其他需要支持的请在issue中提出

使用方法

config.json 对应 配置文件描述 按需求修改

若你使用 发行版 则直接运行 start.bat 即可

若你直接 clone 此仓库请见 使用方法(源码)

配置文件描述

使用 cqhttp 时 频道信息 为对应的 频道ID子频道 信息为对应的 子频道ID

{
	"version": "0.0.4", # 配置文件版本号,当配置的版本与运行发版本不符时程序将无法运行
	"log": true, # 启用日志
	"proxyServer": "127.0.0.1:1080", # 填写代理服务器地址 , 删除该参数将直连
	"cycle": 60000, # 每次获取 Rss 消息的时间间隔 以毫秒为单位
	"errorResendCycle": 3000, # 发送错误后重试时间间隔 以毫秒为单位
	"rssProxy": false, # 允许Rss服务器通过代理连接
	"msgCache": 50, # 每个订阅的最大缓存消息条数
	"fileCache": 7, # 视频与图片的最大缓存天数 若填写为7则7天后的文件会被删除
	"downloadTimeout": 30, # 下载媒体文件超时时间
	"maximumSend": 5, # 发送错误后最大重试次数
	"maximumDownload": 30, #最大尝试下载媒体次数,下载失败时将发送一张错误的图像
	"targetServer": [ # 远程服务器列表
	# ["服务器名", "服务器地址", "服务器类型 目前支持skiqsend与cqhttp"]
		["ski", "127.0.0.1:8081", "skiqsend"]
	],
	"filter": ["广告", "购物"], # 全局屏蔽词列表,当转发的内容包含关键词时,将使用oo替代关键词
	"subscription": [{
		"rssServer": "http://127.0.0.1:1200", # 填写 rss 服务器地址默认为http80和https443端口 , 其他端口请自行添加 例如 https://rsshub.app或http://xxxx.xx:1200
		"routing": "twitter/user/ski_little", # rss消息路径,你可以加上rsshub的get参数来实现对应的功能
		"filter": [], # 局部屏蔽词列表,作用与全局相同,但目标为对应的订阅
		"send": [{
			"targetServerClass": "ski", # 填写在 targetServer 中配置的 "服务器名"
			"printErrorUrl": true, # 使用 cqhttp 服务器时若出现错误则可以将此项调为 true , 会在发送失败后显示发送消息所用的 URL 以便进行调试
			"Retweet": true, # 是否发送转推 (推特专用)
			"ErrorResend": true, # 发送失败时是否尝试重新发送
			"class": "00000000000000000", # 填写 频道信息
			"channel": "1234567", # 填写 子频道信息
			"token":"A8597E5630FFE8A6531B" # 如果服务器需要验证token需要填写对应的token , 没有则删除此行(参考下面没有的例子)
		}]
	}, {
		"rssServer": "http://127.0.0.1:1200",
		"routing": "bilibili/user/dynamic/144630821",
		"filter": [],
		"send": [{
			"targetServerClass": "ski",
			"printErrorUrl": true,
			"Retweet": true,
			"ErrorResend": true,
			"class": "00000000000000000",
			"channel": "1234567"
		}]
	}, {
		"rssServer": "http://127.0.0.1:1200",
		"routing": "tieba/forum/请问您今天要来点兔子吗?filterout=老婆", # 支持rsshub的get参数
		"numberCoded": true, # 由于cqhttp奇怪的bug , 可以通过启用数字全角转换来防止发送失败
		"filter": [],
		"send": [{
			"targetServerClass": "ski",
			"printErrorUrl": true,
			"Retweet": true,
			"ErrorResend": true,
			"class": "00000000000000000",
			"channel": "1234567"
		}]
	}]
}

使用方法(源码)

若你直接 clone 仓库运行,则需要自己准备一个PHP环境

  1. 下载 PHP
  2. php.ini 中启用 curlgd2 以及 mbstring 扩展
  3. 在程序根目录中使用如下命令行运行

php.exe .\res\main.php

rssqtsend's People

Contributors

at-wr avatar cdwcgt avatar skilittle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rssqtsend'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.