mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 17:38:10 +00:00
fix wiring
This commit is contained in:
1 parent
2c907b224b
commit
d5a329469e
2 files changed
+4
-1
No files matched your search
@@ -60,6 +60,8 @@ impl Dispatcher {
|
||||
event_source: &InboundEventSource)
|
||||
-> AnyhowResult<()>
|
||||
{
|
||||
info!("Handle command: {}", &command.command);
|
||||
|
||||
let handler = match self.text_command_handlers.get(&command.command) {
|
||||
Some(h) => h,
|
||||
None => {
|
||||
@@ -68,6 +70,7 @@ impl Dispatcher {
|
||||
}
|
||||
};
|
||||
|
||||
info!("Dispatching handler...");
|
||||
handler.handle_text_command(command, event, event_source)
|
||||
}
|
||||
}
|
||||
@@ -110,7 +110,7 @@ impl TextCommandHandler for CoordinateAndGeocodeHandler {
|
||||
let maybe_lat_long = parse_lat_long(&command.unparsed_arguments);
|
||||
|
||||
if let Some(lat_long) = maybe_lat_long {
|
||||
//self.handle_lat_long(lat_long, twitch_message);
|
||||
self.handle_lat_long(lat_long, event, event_source);
|
||||
}
|
||||
|
||||
// TODO: Geocoding.
|
||||
|
||||
Reference in new issue
Block a user