Closed cirfi closed 6 years ago
In case I have both new_cmd handler and custom stream middleware.
bot.register(handle); let stream = bot.get_stream().and_then(|(_, msg)| { // do something Ok(()) }); bot.resolve_name(); lp.run(stream.for_each(|_| Ok(())).into_future()).unwrap();
In case I have both new_cmd handler and custom stream middleware.