Giter VIP home page Giter VIP logo

aesc_bot's Introduction

AESC Telegram Bot - @aesc_bot

  • Master: Build Status
  • Exams: Build Status_Exams
  • Coverage: codecov
  • GitHub tag

Telegram bot pour les etudiants de l'ESC à Université de Lausanne.

Installation

The bot can be installed in two ways, either using docker, or run directly via python

Clone

git clone https://github.com/FranceX/aesc_bot.git
cd aesc_bot

Set environment variables

To run the bot looks for the API Key under the API_KEY environment variable. Store your API Key in a file named .env, a sample file .env-example is provided.

Source and export the variable to the environment (not needed if using Docker-Compose)

source .env
export API_KEY

Python

Ensure you have python 3.6 installed, no other version has been tested.

Install the dependencies

pip install -r requirements.txt

Run the bot

python run_bot.py

Docker

Run either the latest version by building the image yourself, or use the included compose file to run the latest image from Docker Hub (Or edit the compose file to build from the local Dockerfile)

Plain Docker

Build the image

docker build -t aesc_bot .

Create and run a container in background

docker run -d -e API_KEY --name aesc_bot aesc_bot

Docker Compose

docker-compose up -d

aesc_bot's People

Contributors

fservida avatar

Stargazers

 avatar

Watchers

 avatar

aesc_bot's Issues

/menu command

/menu command
Doit renvoier un clavier personalisé pour choisir le refectoire, et ensuite parser les menus du jour depuis le flux RSS de l'unil.
Utiliser une cache de 1h (eg fichier json) afin de diminuer le nombre de réquètes faites vers le flux, et incrementer la vitesse de réponse.

/exams command

/exams command
Doit demander la volée de l'utilisateur et renvoier les examens pour le semestre parsés depuis l'unil ou un fichier de données.

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.