Skip to content

Commit

Permalink
update channel bot
Browse files Browse the repository at this point in the history
  • Loading branch information
chiyuki0325 committed Dec 19, 2024
1 parent 7d93351 commit f364d7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion channel_bot/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ import escapeHTML from 'escape-html'
const SITE = 'blog.chyk.ink'
const { BOT_TOKEN, CHANNEL_CHAT_ID, STEL_IVS, STEL_SSID, STEL_TOKEN } =
process.env
const { URL_TO_PROCESS } = process.env

const URL_TO_PROCESS = process.argv[2] // 从命令行参数获取 URL

if (!URL_TO_PROCESS) {
console.error('Error: 请提供一个 URL 作为参数。')
}

const Message = (() => {
const FORMAT_CHAR = String.fromCharCode(27)
Expand Down

0 comments on commit f364d7f

Please sign in to comment.