I Love WordCamp Bot = Telegram + WordPress

After a long time I started a new telegram chatbot: “I Love WordCamp Bot“. This time dedicated to the WordPress community and to an event I'm very fond of: the WordCamps.

“I Love WordCamp Bot” is also the first bot that I made using WordPress as a framework. All the previous projects were made in “custom PHP” but starting to get too many I transformed a WordPress installation into a Framework to manage all my bots.

Before talking about “I Love WordCamp Bot”, let's see what led me to develop it.

My chat bots and the initial situation

I developed the first telegram bot, nuraghebot, in 2016 and it brought me many satisfactions (satisfaction from Russia). After this, 10 other chat bots of various types were born, from the consultation of Open Data, simple text answers or API queries.

These chat bots have been developed without any cms and framework, in simple PHP code.

The bots that I made are:

Having made several sources without centralizing content over time was starting to get quite cumbersome, so I started thinking about a way to centralize them all on a single control panel.

Do I need a CMS?

In order to centralize all my bots, I could take 2 paths, one was to create a custom project and the second was to rely on some existing project.

I chose the second way, initially I was undecided between Drupal 8, then with Symfony 3.2 and WordPress.

Between the two I chose WordPress, considering it the most suitable for my idea.

A Framework on WordPress

My idea was to represent bots using the post-post_meta system.

So I installed two plugins and created a special theme. The WordPress installation will only be queried via Telegram webhook and not from a browser.

The two plugins installed are: Duplicate Post and WCK.

Soon I will publish the sources of this theme.

I Love WordCamp

 

“I Love WordCamp” was the first chatbot with this Framework, I chose to dedicate a Chat Bot to WordCamps, one of the most beautiful events organized by the WordPress community.

The bot is connected to the WordCamp Center APIs, the site where WordCamps are published. By accessing the Bot you can have the last 5 news concerning all WordCamps, or activate the “alert” mode to receive a notification every time there is a WordCamp programmed or canceled!

What about my old Bots?

In the coming weeks I will publish all the old chat bots with the new CMS.

If you like, try them and tell me what you think :)

 

Dopo tanto tempo ho dato vita ad un nuovo chatbot per telegram: I Love WordCamp Bot. Questa volta dedicato alla community di WordPress ed a una manifestazione a cui sono molto affezionato: i WordCamp

“I Love WordCamp Bot” è inoltre il primo bot che ho realizzato utilizzando WordPress come framework. Tutti i precedenti progetti sono stati realizzati in “custom PHP” ma iniziando a diventare troppi ho trasformato un installazione WordPress in un Framework per gestire tutti i miei bot. 

Prima di parlare di “I Love WordCamp Bot”, vediamo cosa mi ha portato a svilupparlo. 

I miei chat bot e la situazione iniziale

Ho sviluppato il primo bot per telegram, nuraghebot, nel 2016 e mi ha portato diverse soddisfazioni (soddisfazione dalla Russia). Dopo questo sono nati altri 10 chat bot di vario tipo, dalla consultazione di Open Data, semplici risposte testuali o interrogazioni di API. 

Questi chat bot sono stati sviluppati senza alcun cms e framework, in semplice codice PHP.

I bot realizzati sono:

L'aver realizzato diversi sorgenti senza una centralizzazione dei contenuti con il tempo iniziava a diventare parecchio macchinoso, quindi ho iniziato a riflettere su un modo per centralizzarli tutti su un unico pannello di controllo.

Ho bisogno di un CMS?

Per centralizzare tutti i miei bot potevo percorrere 2 strade, una era quella di creare un progetto custom e la seconda era di affidarmi a qualche progetto già esistente. 

Scelsi la seconda strada, inizialmente ero indeciso tra Drupal 8, quindi con  Symfony 3.2 e WordPress.  

Tra i due la scelsi WordPress, reputandolo il più adatto alla mia idea. 

Un Framework su WordPress

La mia idea è stata quella di rappresentare i bot utilizzando il sistema post-post_meta.

Quindi ho installato due plugin e creato un tema apposito. L'installazione di WordPress sarà interrogabile solo tramite webhook di Telegram e non da browser. 

I due plugin installati sono: Duplicate Post e WCK.

Presto pubblicherò i sorgenti di questo tema.

I Love WordCamp

 

“I Love WordCamp” è stato il primo chatbot con questo Framework, ho scelto di dedicare un Chat Bot ai WordCamp, una delle manifestazioni più belle organizzate dalla community WordPress.

Il bot è collegato alle API di WordCamp Center, il sito in cui vengono pubblicati i WordCamp. Accedendo al Bot si possono avere le ultime 5 news riguardanti tutti i WordCamp, oppure attivare la modalità “alert” per riceve una notifica ogni volta che c'è un WordCamp programmato o cancellato!

Ed i miei vecchi Bot?

Nelle prossime settimane pubblicherò tutti i vecchi chat bot con il nuovo CMS.

Se vi va provateli e ditemi che ne pensate :)

“I Love WordCamp” was the first chatbot with this Framework, I chose to dedicate a Chat Bot to WordCamps, one of the most beautiful events organized by the WordPress community.

The bot is connected to the WordCamp Center APIs, the site where WordCamps are published. By accessing the Bot you can have the last 5 news concerning all WordCamps, or activate the “alert” mode to receive a notification every time there is a WordCamp programmed or canceled!

What about my old Bots?

In the coming weeks I will publish all the old chat bots with the new CMS.

If you like, try them and tell me what you think :)