Fetch answers with Dibo, created by Muh. Deni Setiawan
Dibo Fetch is a command-line tool that allows you to fetch answers from the Dibo platform. It provides a simple and convenient way to interact with the Dibo API.
- Easy to Use: Simply ask a question, and Dibo Fetch will fetch the answer for you.
- Colorful Output: Enjoy a visually appealing terminal output with colorful messages.
- Loading Animation: Experience a cool loading animation while waiting for the answer.
Make sure you have Node.js installed.
npm install -g dibo-fetch
- For CLI:
dibo <Your Question>
- For Require:
const dibo = require('dibo-fetch');
async function exampleDibo() {
try {
const reply = await dibo("Apa kabar hari ini?");
console.log('Jawaban dari Dibo:', reply);
} catch (error) {
console.error(chalk.red('Gagal mengambil jawaban dari Dibo:', error.message));
}
}
exampleDibo();