2.0.0 • Published 6 months ago
fizzl-bots v2.0.0
Fizzl Bots API
This shows that with some creative thinking, you can make anything a reality.
What does this do?
This will make a request every second to check to see if the newest post contains a command or some string. If it does then it can send a response. You might be thinking, "Well, if I can only send a pre-written response, then how is this usfull.". Well let me show you.
How to create a command
const fizzl = require('fizzl');
const bot = require('fizzl-bots');
const username = '';
const password = '';
function test() {
return "Hello World!"
}
// Example bot command: If a post contains "hi," respond with "hi"
setInterval(() => {
bot.botCommand(username, password, "!hi", test());
}, 1000); // Check every 1 second
You can have it use a function to get the response and then return it. This make there be infinite possibilitys.