telegram-robbot

0.0.1 • Public • Published

profile picture

Rob, the telegram robot

GitHub top language Maintenance GitHub code size in bytes

Rob is a telegram bot I write for fun -- it is not packed with certainly useful features, but knows some cool stuff.

Commands

/add [todo text] -- adds a todo item with the text specified
/list -- lists all todos
/del [note id] -- deletes the todo item with the id specified
/grabmyid -- replies the telegram id of the user executing the command
/hacktelegram -- hacks telegram, just for ya
/battle [name] -- starts a rap battle against the user specified.

Looks cool? Let's set it up!

Setup

The bot is made to be hosted on https://glitch.com. It's development is most active there, the github repo is just a mirror.

  1. Register a Glitch account
  2. Remix my glitch project: https://glitch.com/freedomzonebot
  3. Speak with @botfather on telegram and create a bot
  4. Fill in .env: TELEGRAM_BOT_TOKEN is the bot token you received from BotFather, USER_IDs are the trusted telegram IDs (who can perform todo actions). You can get your id with the /grabmyid command.
  5. Set up Uptime Robot to ping your bot every 5 minutes. This is not mandatory, but this keeps the bot "awake". If it ever sleeps, just go to the url yourprojectname.glitch.me (in my case freedomzonebot.glitch.me) and the bot is awake

Small disclaimer: the telegram hacking command is just for fun. It doesn't do any damage to anyone, and, Pavel Durov never said that robots took over telegram.

Package Sidebar

Install

npm i telegram-robbot

Weekly Downloads

2

Version

0.0.1

License

GPL-3.0-or-later

Unpacked Size

37.8 kB

Total Files

6

Last publish

Collaborators

  • daaniiieel