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
e.g. we could expose:
export const callAndReply = (unsubscribe, text) => (e, reply) => { unsubscribe() reply(text) } export const justReply = (text) => (e, reply) => reply(text)
and then use it in plugins:
import { callAndReply, justReply } from 'coffea-bot' export default function example (networks) { let enabled = true return { 'disable': callAndReply(() => enabled = false, 'Disabled example.'), 'enable': callAndReply(() => enabled = true, 'Enabled example.'), 'default': justReply('Usage: /example disable|enable') } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
e.g. we could expose:
and then use it in plugins:
The text was updated successfully, but these errors were encountered: