Language detection in @redken_bot

Introduction Before the move to Python3, redken had per-group language configuration by using i18n, with the upgrade/rewrite of Python3 code there were some issues and I had to remove the support, defaulting everything to English (most of the outputs where already in English so not a great loss). On another side, having to manually configure each channel could be problematic as most users just add the bot to their groups but don’t care about other settings that might be useful like welcome message, inactivity for kicking out inactive users, etc....

March 25, 2020 · 6 min · Pablo Iranzo Gómez

Python and iCalendar ICS processing

Introduction iCalendar (.ics or webcal) is a standard for providing ‘calendar’ information over text file, it allows to define events, etc and it’s ideal to ‘subscribe’ over the internet to remote calendars, which is commonly used to show free/busy slots for scheduling meetings, etc. If you’re familiar with Google Calendar or others, it uses ‘ics’ under the hood, and you can get full url for it so that it can be shared....

September 17, 2019 · 5 min · Pablo Iranzo Gómez

@redken_bot

Redken Manual This document contains some information about regular Redken https://t.me/redken_bot usage and some advanced settings. Introduction By default, new groups where the bot is added are just ready to start being used. General usage and features: word++ to add karma word-- to remove karma reply to message with ‘++’, ‘–’ or ‘==’ to add or remove karma to the user of the replied message or to the same words that were used /quote add username text to add a quote for a given username with the following text as the message /quote username to retrieve a random quote for that username....

March 4, 2019 · 8 min · Pablo Iranzo Gómez

Telegram Redken bot documentation

The new document is at Redken Documentation.

March 4, 2019 · 1 min · Pablo Iranzo Gómez

Unit testing for stampy

Since my prior post on Contributing to OpenStack, I liked the idea of using some automated tests to validate functionality and specifically, the corner cases that could arise when playing with the code. Most of the errors fixed so far on stampy, were related with some pieces of the code not properly handling UTF or some information returned, etc and still it has improved, the idea of ensuring that prior errors were not put back into the code when some other changes were performed, started to arise to be a priority....

November 5, 2016 · 6 min · Pablo Iranzo Gómez
This blog is a participant in the Amazon Associate Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.