Coder Social home page Coder Social logo

simons's Introduction

Logo of the project

Simons

utility telegram bot

Getting started

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.

Configuration

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.

Developing

git clone [email protected]: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.

Parsers

bandeco.js

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.

calendar.js

cal [month] - shows the calendar for the month, receives an optional month number.

dolar.js

n dol, n usd - converts the usd value to brl, including taxes.

euro.js

n eur - converts the euro value to brl, including taxes.

twitter.js

(twitter link) - shows quoted and "in reply to" tweets.

weather.js

w[eather]@location - shows the weather at location.

Contributing

Issues are welcomed but keep in mind that this bot is for my personal use.

Licensing

The code in this project is licensed under MIT license.

simons's People

Contributors

huijari avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.