1.0.1 ⢠Published 7 months ago
fun-functions v1.0.1
š quote-functions
Welcome to quote-functions! This plugin is designed to seamlessly integrate with your existing Robo.js project and provide new features and enhancements to your robo. The best part? Everything automatically works once you install this plugin!
š©āš» Are you the plugin developer? Check out the Development Guide for instructions on how to develop, build, and publish this plugin.
Installation š»
To add this plugin to your Robo.js project:
npx robo add quote-functions
New to Robo.js? Start your project with this plugin pre-installed:
npx create-robo <project-name> -p quote-functions
Commands added
Command | Description |
---|---|
/fun get-quote | sends an embed contaiing a random quote and its author. |
/fun get-funfact | sends an embed with a random fun fact. |
/fun get-question | sends a question with buttons to awnser and tells you if you where right or wrong. |
you can take the code from these commands to make your own quizzes or anything have fun with it.
functions added
function | Description |
---|---|
fetchRandomFunFact | returns a random fun fact as a string. |
fetchQuestion | returns a object of type Question (shown bellow) that can be used how you like. |
fetchQuote | returns a random quote as a Quote object (shown bellow) that can be used. |
objects/Types
Question Type:
export interface Question {
type: string
difficulty: string
category: string
question: string
correct_answer: string
incorrect_answers: string[]
}
Quote Type:
export interface Quote {
id: string
content: string
author: string
}