New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fun-functions

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fun-functions

Welcome to _quote-functions_! This plugin is designed to seamlessly integrate with your existing **[Robo.js](https://robojs.dev)** project and provide new features and enhancements to your robo. The best part? Everything automatically works once you insta

latest
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

🚀 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
}

Generated with create-robo magic!

Keywords

bot

FAQs

Package last updated on 29 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts