feat: add change language in welcome message #2

Merged
polpetta merged 9 commits from change-language into devel 2023-04-03 10:57:15 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 480f2e79ef - Show all commits

View File

@ -53,8 +53,8 @@ public class Dispatcher {
.flatMap( .flatMap(
eventName -> eventName ->
tgEventProcessors.stream() tgEventProcessors.stream()
// FIXME that fucking stupid, why iterate over, just use a map! Make // FIXME this is fucking stupid, why iterate over, just use a map!
// mapping at startup then we're gucci for the rest of the run // Make mapping at startup then we're gucci for the rest of the run
.filter(processor -> processor.getEventName().equals(eventName)) .filter(processor -> processor.getEventName().equals(eventName))
.findAny()) .findAny())
.map(processor -> processor.process(callbackQueryContext, update)) .map(processor -> processor.process(callbackQueryContext, update))

View File

@ -61,8 +61,8 @@ public class Router {
.flatMap( .flatMap(
command -> command ->
tgCommandProcessors.stream() tgCommandProcessors.stream()
// FIXME that fucking stupid, why iterate over, just use a map! Make // FIXME this is fucking stupid, why iterate over, just use a map!
// mapping at startup then we're gucci for the rest of the run // Make mapping at startup then we're gucci for the rest of the run
.filter(ex -> ex.getTriggerKeyword().equals(command)) .filter(ex -> ex.getTriggerKeyword().equals(command))
.findAny()) .findAny())
.map(executor -> executor.process(chat, update)) .map(executor -> executor.process(chat, update))