更新频道配置

main
落雨楓 2 years ago
parent 29713ec7d6
commit 1b4e7d66ec

@ -0,0 +1 @@
name: "测试"

@ -0,0 +1,9 @@
name: 发送调试信息
provider: pusher
source:
service: pusher
channel: debug
type: echo
tpl:
default: |-
{{msg}}

@ -0,0 +1 @@
name: "异世界红茶馆"

@ -0,0 +1,11 @@
name: 新帖子
provider: pusher
source:
service: pusher
channel: isekaibbs
type: newPost
tpl:
default: |-
{{{postUser.displayname}}}「{{{postUser.username}}}」发布了帖子《{{{topic.titleRaw}}}》:
{{{excerpt post.content 100}}}
{{{topic.url}}}

@ -0,0 +1,11 @@
name: 新回复
provider: pusher
source:
service: pusher
channel: isekaibbs
type: newReply
tpl:
default: |-
{{{postUser.displayname}}}「{{{postUser.username}}}」回复了 {{{topicUser.displayname}}}「{{{topicUser.username}}}」的帖子《{{topic.titleRaw}}》:
{{{excerpt post.content 100}}}
{{{post.url}}}

@ -6,6 +6,6 @@ source:
type: autoReview type: autoReview
tpl: tpl:
default: |- default: |-
{{{author}}} 更新了页面: {{{title}}} {{{author}}} 更新了页面: {{{title}}}
{{{summary}}} {{{summary}}}
{{{result}}} {{{result}}}

@ -6,6 +6,7 @@ source:
type: needReview type: needReview
tpl: tpl:
default: |- default: |-
Review队列更新 Review队列中增加了新页面:
{{{author}}} 更新了页面: {{{title}}} 编辑者: {{{author}}}
标题: {{{title}}}
{{{summary}}} {{{summary}}}

@ -6,6 +6,6 @@ source:
type: edit type: edit
tpl: tpl:
default: |- default: |-
{{{author}}} 更新了页面: {{{title}}} {{{author}}} 更新了页面《{{{title}}}》:
{{{summary}}} {{{summary}}}
{{{url}}} {{{url}}}

@ -6,6 +6,7 @@ source:
type: new type: new
tpl: tpl:
default: |- default: |-
{{{author}}} 创建了新页面: {{{title}}} {{{author}}} 创建了新页面《{{{title}}}》:
{{{summary}}} {{{summary}}}
{{{url}}} {{{url}}}

@ -0,0 +1 @@
name: "MediaWiki Club"

@ -0,0 +1,12 @@
name: 新帖子
provider: pusher
source:
service: pusher
channel: mwclub
type: newPost
tpl:
default: |-
{{{postUser.displayname}}}「@{{{postUser.username}}}」发布了帖子《{{{topic.titleRaw}}}》:
{{{excerpt post.content 100}}}
{{{topic.url}}}

@ -0,0 +1,11 @@
name: 新回复
provider: pusher
source:
service: pusher
channel: mwclub
type: newReply
tpl:
default: |-
{{postUser.displayname}}「@{{postUser.username}}」回复了 {{topicUser.displayname}}「@{{topicUser.username}}」的帖子《{{topic.titleRaw}}》:
{{Utils.excerpt(post.content, 100)}}
{{post.url}}

@ -11,9 +11,6 @@ var pusher = new Pusher({
cluster: config.service.pusher.cluster cluster: config.service.pusher.cluster
}); });
pusher.trigger('isekai', 'newPage', { pusher.trigger('debug', 'echo', {
author: "Hyperzlib", msg: "推送系统应该已经好了"
title: "沙盒",
summary: "机器人应该可以用了",
url: "https://www.isekai.cn/ShaHe"
}); });

Loading…
Cancel
Save