utility telegram bot
To run this bot you will need node and npm. After cloning this repository, install the dependencies, configure the environment and start the server:
npm install
# set up necessary environmental variables (next section)
npm start
To actualy use it in Telegram you should set a webhook pointing to the server.
Next are the environmental variables used by this bot. You can set those normally on you environment
or use a .env
file.
PORT
: server port.BOT_KEY
: telegram bot token.FUMP_TOKEN
: ufmg's fump services token.TWITTER_TOKEN
: twitter app token.DEBUG
: when present the server will print the message instead of sending it.
git clone git@github.com:huijari/simons.git
cd simons
npm install
# set up environmental variables
npm run dev # hot reloading
As it starts a local server you can send sample messages directly into it. Also, with the DEBUG variable on, you don't need to use real messages.
UFMG's restaurant menu.
/rui
- menu for the Restaurante Universitário I./ruii
- menu for the Restaurante Universitário II./ru
- menu for these two restaurants.
cal [month]
- shows the calendar for the month, receives an optional month number.
n dol
, n usd
- converts the usd value to brl, including taxes.
n eur
- converts the euro value to brl, including taxes.
(twitter link)
- shows quoted and "in reply to" tweets.
w[eather]@location
- shows the weather at location
.
Issues are welcomed but keep in mind that this bot is for my personal use.
The code in this project is licensed under MIT license.