Skip to content

Latest commit

 

History

History
executable file
·
24 lines (24 loc) · 590 Bytes

README.md

File metadata and controls

executable file
·
24 lines (24 loc) · 590 Bytes

telegram chat bot nodejs

說明

使用nodejs所建立的telegram對話機器人的伺服端

環境

  • nodejs & npm

使用套件

指令(bot.js)

  • /start : 啟用機器人
  • /ping: 測試是否存活
  • /cal (運算式):輸出運算的結果
  • /today:取得今天的星期
  • /nowTime:現在的時間
  • /echo (輸入的內容):回覆主人輸入的內容
  • /getWebsite (網址):把網址輸出成網頁

啟動服務

  • npm:
$ npm start
  • node:
$ node index.js