moment.js

const yes = moment().subtract(3, 'days').startOf('day');
const no = moment().subtract(1, 'days').endOf('day');

最後面沒加 .format() 的話,出來的是物件,想要有字串或時間,要加上

.format('x');
// 1588435200000
// 顯示豪秒數
.format();
// 2020-05-05T23:59:59+08:00
// 顯示格式化後的時間

telegram 機器人使用

@Customize_Captcha_Bot
自訂型入群驗證
加入群組之後,記得輸入/switch
機器人才會切換到你目前的群組

接下來新增問題,在機器人那邊打 /new
1.先輸入問題:
你是什麼?
2.輸入選項:
天才
白痴
3.輸入答案:
白痴