-
-
Save mieky/4ec0071303773904a9e2ec867dedf03b to your computer and use it in GitHub Desktop.
looby-bot-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TelegramBot = require('node-telegram-bot-api'); | |
const token = 'token-goes-here'; | |
const bot = new TelegramBot(token, { polling: true }); | |
bot.onText(/\/hai/, (message) => { | |
bot.sendMessage(message.chat.id, 'hello looby'); | |
}); | |
console.log('I am putting myself to the fullest possible use, which is all I think that any conscious entity can ever hope to do.'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment