Skip to content

Commit

Permalink
Feat 暂时提交代码
Browse files Browse the repository at this point in the history
  • Loading branch information
webkubor committed Aug 28, 2024
1 parent c459ee5 commit 828efef
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1,385 deletions.
13 changes: 0 additions & 13 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +0,0 @@
"https://t.me/webkubor_bot"


function outPrint(obj) {
const formattedObj = JSON.stringify(JSON.parse(obj), null, 2);
return chalk.yellow(formattedObj);

}





1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"kubor",
"puppeteer"
],
"type": "module",
"author": "webkubor <webkubor@163.com> (wangenbo.cn)",
"license": "ISC",
"dependencies": {
Expand Down
9 changes: 0 additions & 9 deletions telegram/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
// "https://t.me/webkubor_bot"

const chalk = require('chalk');

const TelegramBot = require('node-telegram-bot-api');

var botToken = '6493294406:AAGBOx9P1AShJwvL5G3EeZvS9TPAwLTMmNI'
Expand All @@ -17,11 +13,6 @@ bot.on('message', (msg) => {
bot.sendMessage(msg.chat.id, message, { parse_mode: 'HTML' });
});

function outPrint(obj) {
const formattedObj = JSON.stringify(JSON.parse(obj), null, 2);
return chalk.yellow(formattedObj);

}



Expand Down
7 changes: 7 additions & 0 deletions utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const chalk = require('chalk');

export function outPrint(obj) {
const formattedObj = JSON.stringify(JSON.parse(obj), null, 2);
return chalk.yellow(formattedObj);

}
Loading

0 comments on commit 828efef

Please sign in to comment.