We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obviously, this feature requires dotty.
By using Context Functions we can get rid of the implicit msg => that litters many a bot.
implicit msg =>
This example works in a dotty project:
type MsgHandler = Message ?=> Future[Unit] def onCmd(filter: CommandFilterMagnet)(action: MsgHandler) = onCommand(filter)(implicit msg => action) onCmd("foo") { reply("bar").void }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Obviously, this feature requires dotty.
By using Context Functions we can get rid of the
implicit msg =>
that litters many a bot.This example works in a dotty project:
The text was updated successfully, but these errors were encountered: