1.0.1 • Published 7 months ago

fun-functions v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

šŸš€ 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

CommandDescription
/fun get-quotesends an embed contaiing a random quote and its author.
/fun get-funfactsends an embed with a random fun fact.
/fun get-questionsends 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

functionDescription
fetchRandomFunFactreturns a random fun fact as a string.
fetchQuestionreturns a object of type Question (shown bellow) that can be used how you like.
fetchQuotereturns 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
}

1.0.1

7 months ago

1.0.0

7 months ago