Skip to content

Bot telegram che restituisce in modo pseudorandomico canzoni del cantante indie Giorgio Poi.

Notifications You must be signed in to change notification settings

NicolaTheAnalyst/giorgiopoibot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

giorgiopoibot

È un semplicissimo bot telegram che restituisce in modo pseudorandomico canzoni del cantante indie Giorgio Poi. Nasce come parte di un regalo di Natale e, per i vincoli imposti da questa imminente deadline, mantiene una struttura elementare.

Giorgiopoibot: diagramma di sequenza

sequenceDiagram
    participant telegram
    participant giorgiopoibot
    participant database
    telegram->>giorgiopoibot: /giorgiopls
    giorgiopoibot->>database: SELECT * from Songs
    giorgiopoibot->>giorgiopoibot: generate random_id
    giorgiopoibot->>database: SELECT * from Songs where Id = random_id
    database->>giorgiopoibot: get record
    giorgiopoibot->>telegram: send song url

Giorgiocaller: diagramma di sequenza

sequenceDiagram
    participant database
    participant giorgiocaller
    participant youtube
    giorgiocaller->>youtube: get request (songs from channel)
    youtube->>giorgiocaller: response
    giorgiocaller->>giorgiocaller: elaborate data
    giorgiocaller->>database: INSERT OR REPLACE INTO Songs

to-do:

  • Renderlo scalabile (appoggiarsi alle API di youtube?): fatto

About

Bot telegram che restituisce in modo pseudorandomico canzoni del cantante indie Giorgio Poi.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published