MY FIRST TELEGRAM BOT
Silly bot that reacts to things, and gives you or takes away VERY VALUABLE NORIEGA POINTS.
Code
config.json
: Change this as pleased../lib/make-reactions
: The rancid logic that computes reactions from the incoming msg. Silly randomness involved../lib/run-reactions
: Actually send stuff to the telegram network.
How to run it
- Install node and nvm somehow.
- Get a bot token from the BotFather dude.
- Then do on your unix terminal:
export BOT_TOKEN="..."
node index.js
(where ...
is replaced with your token)
TODO
- Extend it to lauch missiles and steal all the bitcoin.
- Persist
state
to disk. Stop losing mah points.