M4R774 / bobweb2

Telegram botti piristämään elämää
MIT License
8 stars 1 forks source link

refactor command_daily_question#handle_message_with_dq #216

Open Latemus opened 1 year ago

Latemus commented 1 year ago

function ´handle_message_with_dq´ has gotten too big and it has too many possible exits. It would be wise to refactor the function to use something more robust, for example 'chain of command' pattern