MozItaBot icon

MozItaBot (@MozItaBot, first called MozIta Hub) was the official Telegram bot of Mozilla Italia. It pointed newcomers to the community's groups and channels, and offered support and contribution info, the Firefox vademecum PDFs, the monthly meetings, active projects, the rules and opt-in news alerts. Commands included /gruppi, /supporto, /vademecum, /prossimoMeeting, /progetti and /avvisiOn. Admins could broadcast messages, manage projects and channels, and download logs, and from late 2020 the bot also forwarded Mozilla Italia tweets to the MozItaNews channel. It was written in Python 3 with telepot, and with tweepy for the Twitter integration.

Type Telegram bot
Platforms Telegram
License Open source
Latest version v1.6.3.1
Active 2018 – 2021 · 3 years
Role Creator and lead developer (2018 – 2020), with contributions from the Mozilla Italia community

Changelog

v1.6.3.1 27 August 2021

The Design and Marketing groups were merged and Amazon was removed from the projects list. Group links are now set in one place, and requirements pin a patched telepot (by Damiano Gualandri). The Twitter integration had been switched off in May 2021.

v1.6.3 18 November 2020

Added a Marketing group button and texts, and Firefox Reality in the projects list (contributed by Damiano Gualandri).

v1.6.2 15 November 2020

Removed the IoT and 'Become a volunteer' groups.

v1.6.1 16 October 2020

Forwarded tweets get a 'View tweet' button and an RT label for retweets. Added the Common Voice vademecum (/vademecumCV) and the L10n group, and updated the projects lists.

v1.6.0 3 October 2020

Twitter integration: new Mozilla Italia tweets are forwarded automatically to the MozItaNews channel (by Damiano Gualandri). Admins can download today's or yesterday's log.

v1.5.4 3 October 2020

Improved the admin help message.

v1.5.3 2 October 2020

The channel commands are now grouped under /admin canale. Fixed the error message shown for a missing channel; input is case-insensitive, and '@' is added automatically when needed.

v1.5.2 2 October 2020

Clarified the admin section and documented the admin IDs in code comments.

v1.5.1 2 October 2020

Fixed a misspelling in the admin help.

v1.5.0 2 October 2020

Admins can manage a list of channels and preview, send or broadcast messages to them. The code was refactored (contributed by Damiano Gualandri).

v1.4.1 28 April 2020

Users the bot can no longer reach are removed automatically from the news-alert and all-users lists.

v1.4 27 April 2020

Broadcasts to users now pause briefly between messages and tell the admin when they finish. Exceptions are logged to file.

v1.3.6 15 April 2020

Added a function that logs exceptions to file (contributed by Ilyas).

v1.3.5 5 April 2020

New /social command and button with the community's social media links (contributed by Ilyas).

v1.3.4 26 November 2019

Fixed bug #33: the bot now answers inline-button presses.

v1.3.3 20 October 2019

Admins can download log files with /admin scarica YYYY MM DD.

v1.3.2 7 October 2019

Fixed the /vademecumGenerale and /vademecumTecnico commands and updated the vademecum PDFs.

v1.3.1 6 October 2019

Bug fixes, including in the admin area. The rules link now points to the community copy, the code was optimised and the vademecum PDFs were updated.

v1.3 6 October 2019

Simplified the help, renamed commands (call to meeting, prossimacall to prossimoMeeting) in camelCase and added /aiuto. A new button opens the YouTube channel, and commands are no longer case-sensitive.

v1.2.8 12 April 2019

Some improvements.

v1.2.7 5 April 2019

Added an admin 'preview' command for checking messages before sending, and fixed managing community projects in admin mode.

v1.2.6 19 March 2019

Code-quality improvements: the Pylint score went from 6.55 to 7.40 out of 10.

v1.2.5 19 March 2019

Code-quality improvements: the Pylint score went from 5.27 to 6.55 out of 10.

v1.2.4 19 March 2019

Code-quality improvements: the Pylint score went from 3.82 to 5.27 out of 10. Giovanni Francesco Solone revised the button texts.

v1.2.3 18 March 2019

Some fixes.

v1.2.2 17 March 2019

More fixes. The bot shows a notice while it sends the vademecum PDFs, and the telegram_events module was updated.

v1.2.0 9 March 2019

Message-event handling moved to the shared telegram_events.py module. Giovanni Francesco Solone revised the bot's texts.

v1.1.9 8 March 2019

More of the bot's texts moved into frasi.json.

v1.1.8 8 March 2019

The bot's texts are now loaded from the frasi.json file.

v1.1.7 19 February 2019

The vademecum PDFs are now sent straight from the bot instead of as links (#26). Some fixes.

v1.1.6 17 February 2019

Added an admin and polished several messages.

v1.1.5 17 February 2019

New admins. Chat history is now saved as daily log files, and the 2017–2019 meeting etherpads were added.

v1.1.4 17 February 2019

Some improvements.

v1.1.3 5 February 2019

Fixed /info. Some messages now use Markdown formatting.

v1.1.1 2 February 2019

Markdown support in the bot's messages and in admin alerts, and an updated warning for users without a username.

v1.1.0 2 February 2019

Monthly meeting recordings are now split by year, and the admin meeting commands take a year.

v1.0.4 1 February 2019

Added emoji to buttons and messages. Minor fixes.

v1.0.3 1 February 2019

The bot was renamed from 'MozIta Hub' to 'MozItaBot'. Fixes and corrections.

v1.0.2 30 January 2019

Added an 'Avvisi' (news alerts) button and new icons.

v1.0.1 27 January 2019

First 1.x version: encoding fixes for Linux, and the version is printed at startup.

v0.2.2 alpha 18 January 2019

The bot token is now read from a config.ini file (#19, contributed by Daniele Scasciafratte). Other updates.

v0.2.1 alpha 4 January 2019

Added a footer to news-alert messages, plus small fixes.

v0.2 alpha 17 December 2018

Added exception handling and more detailed logs, plus news alerts users can switch on or off. Monthly meetings and projects now load from JSON files, and admins can broadcast messages and manage meetings and projects.

v0.1.5 alpha 10 November 2018

Code improvements and a new contributor in the credits.

v0.1.4 alpha 5 November 2018

/prossimacall now gives the exact date of the next monthly meeting (the first Friday of the month). Added the November meeting and fixed the code.

v0.1.3 alpha 27 October 2018

Small fixes and a link to the October 2018 meeting recording.

v0.1.2 alpha 26 October 2018

Fixed some errors in the code.

v0.1.1 alpha 26 October 2018

Fixed an error in the code.

v0.1.0 alpha 26 October 2018

Added the active Mozilla and Mozilla Italia projects, the monthly meetings with an estimate of the next one, and command fixes.

v0.0.3 alpha 1 October 2018

Added FAQs and timestamps in the logs, and reorganised the commands (with contributions from Martin Ligabue).

v0.0.2 preview 29 September 2018

Renamed commands (/azioni to /help, /support to /supporto) and reordered the menus, with contributions from Martin Ligabue.

v0.0.1 preview 7 September 2018

First version of the 'MozIta Hub' bot. Commands link to the Mozilla Italia Telegram groups and News channel, support, the forum, the vademecum, feedback, how to contribute, and info.