Log for
OwO
我看見網頁內容了,我該如何理解並利用這網站的資源(?)
一直噴錯ww
Cannot read property 'match' of undefined
你能夠讓他自己處理一些東西,像是跟使用者對話能夠讓使用者把已經知道的字串組合起來順便上Bot學起來以便以後調用這樣(?)
if(message.text.match(/hi/i){
}
這樣一直噴錯XD
我自己是改成 if(message.text && message.text.match() )
OuO後台看他還活著的說...難道又是超高延遲!?
還好bot看不見bot不然我這邊就都要是訊息了(?)
我在思考要如何把範圍在縮小一點變成純只判定有沒有GGEZ
msg.text.match(/ggez/i)現在是這樣
[群組]使用者 »> 內容 <=這是我調用框架的資料跟用console.log弄得
npm上的node-telegram-bot-api
bot沒噴掉就算了(?),暫時不會死,剩下的就是我得怎麼修理它了
Unhandled rejection TypeError: Cannot read property 'match' of undefined
at TelegramBot.<anonymous> (/home/panda/ouo/OwO_bot/index.js:7:16)
at TelegramBot.emit (/home/panda/ouo/OwO_bot/node_modules/eventemitter3/index.js:116:35)
at TelegramBot.processUpdate (/home/panda/ouo/OwO_bot/node_modules/node-telegram-bot-api/lib/telegram.js:104:14)
at /home/panda/ouo/OwO_bot/node_modules/node-telegram-bot-api/lib/telegramPolling.js:52:17
at Array.forEach (native)
at /home/panda/ouo/OwO_bot/node_modules/node-telegram-bot-api/lib/telegramPolling.js:49:17
at tryCatcher (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/util.js:26:23)
at Promise._settlePromiseFromHandler (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:507:31)
at Promise._settlePromiseAt (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:581:18)
at Promise._settlePromises (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues (/home/panda/ouo/OwO_bot/node_modules/request-promise/node_modules/bluebird/js/main/async.js:15:14)
at runCallback (timers.js:570:20)
at tryOnImmediate (timers.js:550:5)
at processImmediate [as _immediateCallback] (timers.js:529:5)
if(msg.text && msg.text.match(/^ggez/i) ){
原本想要做看看用超簡單的方式弄一個交談bot
可是QwQ,我發現中文一個字放在不同地方有不同意思QwQ
ggezjxjjsbsnxkzjjsbabbsndjdjdjjdbdbbsbsEXHUSBAND
Auto correct:
calculate:
:3
auto length
Village Game is not a application.
loadAvg 999999999999, 9999999999999, 9999999999
發現好玩的問題w
啦的萬國碼是\u5566
我沒有把他寫進去
他遇到那個字一樣會回應XD
Fuck you bitch
Shut up you wank
I don't know who is bitch around me.
我bot好恐怖…
我用\u662f(我)
然後我打是,他也會跳…
It's not good to you,and also everyone.
But no one actually cares.
好,決定了
先完整研究完自然語言跟機器學習
再來看有沒有辦法弄在bot上好惹
Just look at the sky.
Make you heart more bigger.