Giter VIP home page Giter VIP logo

informatecibot's Introduction

Bot di supporto per il gruppo Telegram di Informatica a Pisa (clicca qui per entrare).

Avviare il bot

Per utilizzare il bot basta cliccare qui.

Per far partire una vostra copia del bot, assicurarsi di avere Node.js e NPM installati sul proprio sistema.

Inoltre è necessario richiedere un token per le API di Telegram, contattando @BotFather. Può esservi utile annotarsi anche il proprio id Telegram, necessario per alcune funzionalità.

$ git clone https://github.com/pitasi/informatecibot
$ cd informatecibot
$ npm install

# Se avete solo il token
$ TOKEN=ilvostrotoken npm start

# OPPURE Se avete il vostro id Telegram
$ TOKEN=ilvostrotoken ADMINS=123123 npm start

# OPPURE In caso di più admin
$ TOKEN=ilvostrotoken ADMINS="123123 789789" npm start

Funzionalità

Allo stato attuale, il bot è suddiviso in moduli. Ciascuno dei quali fornisce una funzione differente, i moduli sono inseriti nella cartella src/modules e sono caricati automaticamente all'avvio.

Notare che un modulo semplice può essere semplicemente un file nomemodulo.js, mentre per necessità più avanzate si può creare una cartella nomemodulo/ che deve avere necessariamente un file index.js al suo interno. Per avere una idea di come sono strutturati i moduli fare riferimento a quelli esistenti.

Moduli attivi

Nome Descrizione Autore
TODO TODO Antonio Pitasi

Dipendenze

Questo bot è creato utilizzando il wrapper Telegraf per Node.js.

Viene fornito anche un Dockerfile per semplificare sviluppo e deploy in locale.

Allo stato attuale non è necessario altro per far partire il bot, in futuro potrebbe esserci bisogno di un database.

Contribuire

Qualsiasi idea è ben accetta, fate una Pull Request!

Altre informazioni

In caso di problemi da segnalare o funzioni da suggerire aprire un issue qui su GitHub oppure scrivere all'interno del gruppo di Informatica.

informatecibot's People

Contributors

pitasi avatar

Stargazers

Luiggi avatar Ben Abbenanti avatar

Watchers

James Cloos avatar Ben Abbenanti avatar  avatar  avatar

Forkers

annihilatorrrr

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.