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
Issue for discussion about Bot middleware functionality and ideas.
Inspired by Express middleware functions.
Express implementation:
app.use(function (req, res, next) { console.log('Time:', Date.now()) next() })
Bot.use((chatter, send) => { // ... some sort of operation with the chatter object, or message string send() // Allows the message to be sent })
In relation to this, the idea of custom Bot plugins would be cool e.g.
const TwitchBotCommands = require('twitch-bot-commands') // The custom bot module const commands = TwitchBotCommands("!", { "test": "command executed!", "tweet": async chatter => { const latestTweet = await someAsyncApiRequest(chatter.username) return `Latest tweet: ${latestTweet}` } }) // Instantiate the module Bot.module(commands)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue for discussion about Bot middleware functionality and ideas.
Inspired by Express middleware functions.
Express implementation:
In relation to this, the idea of custom Bot plugins would be cool e.g.
The text was updated successfully, but these errors were encountered: