A library that gives you facts about Discord
npm install discordfacts
If you simply want a random fact of Discord, you can use the following code:
var discordFacts = require('discordfacts');
var randomFact = discordFacts.random();
If you want all facts of Discord, you can use the following code:
var discordFacts = require('discordfacts');
var randomFact = discordFacts.all();
We are very happy if you have any new facts about Discord and want to add them to the project!
Open the file discordfacts.json, then simply add a new fact about Discord by using the following template:
{
name: "NAME OF THE FACT (should be short)",
description: "THE DESCRIPTION OF THE FACT"
}
When you've completed this, you can create a pull request and we will accept is ASAP! Thanks in advance! :)
npm test
In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.
MIT