0.0.1 • Published 4 years ago

telegram-robbot v0.0.1

Weekly downloads
2
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

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.