mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-05 07:27:35 +08:00
rename product from bossgeekgo to geekgeekrun
This commit is contained in:
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@bossgeekgo/geek-auto-start-chat-with-boss",
|
"name": "@geekgeekrun/geek-auto-start-chat-with-boss",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "geek-auto-start-chat-with-boss",
|
"description": "geek-auto-start-chat-with-boss",
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node ./main/index.mjs"
|
"start": "node ./main/index.mjs"
|
||||||
},
|
},
|
||||||
"author": "bossgeekgo",
|
"author": "geekgeekrun",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ export default class DingtalkPlugin {
|
|||||||
sendQueueTimer = setTimeout(function sendMergedMessage () {
|
sendQueueTimer = setTimeout(function sendMergedMessage () {
|
||||||
if (collectedMessageList.length === 0) {
|
if (collectedMessageList.length === 0) {
|
||||||
} else if (collectedMessageList.length === 1) {
|
} else if (collectedMessageList.length === 1) {
|
||||||
collectedMessageList[0].dingtalkRequestBody.text.content += `\n${dayjs(collectedMessageList[0].insertedTime).format('MM-DD HH:mm:ss')}\n\n【bossgeekgo】`
|
collectedMessageList[0].dingtalkRequestBody.text.content += `\n${dayjs(collectedMessageList[0].insertedTime).format('MM-DD HH:mm:ss')}\n\n【geekgeekrun】`
|
||||||
requestDingtalkNotify(
|
requestDingtalkNotify(
|
||||||
_this.dingtalkAccessToken, JSON.stringify(collectedMessageList[0].dingtalkRequestBody)
|
_this.dingtalkAccessToken, JSON.stringify(collectedMessageList[0].dingtalkRequestBody)
|
||||||
)
|
)
|
||||||
@@ -23,7 +23,7 @@ export default class DingtalkPlugin {
|
|||||||
_this.dingtalkAccessToken, JSON.stringify((createTextMessage(
|
_this.dingtalkAccessToken, JSON.stringify((createTextMessage(
|
||||||
collectedMessageList.map(it => {
|
collectedMessageList.map(it => {
|
||||||
return `${it.dingtalkRequestBody.text.content}\n${dayjs(it.insertedTime).format('MM-DD HH:mm:ss')}\n`
|
return `${it.dingtalkRequestBody.text.content}\n${dayjs(it.insertedTime).format('MM-DD HH:mm:ss')}\n`
|
||||||
}).join('-----\n') + '\n【bossgeekgo】'
|
}).join('-----\n') + '\n【geekgeekrun】'
|
||||||
)).dingtalkRequestBody)
|
)).dingtalkRequestBody)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user