https://github.com/albandewilde/random_useless_facts
Discord bot which send random useless facts using https://uselessfacts.jsph.pl/
https://github.com/albandewilde/random_useless_facts
discord discord-bot discord-go discordgo
Last synced: 3 months ago
JSON representation
Discord bot which send random useless facts using https://uselessfacts.jsph.pl/
- Host: GitHub
- URL: https://github.com/albandewilde/random_useless_facts
- Owner: albandewilde
- License: mit
- Created: 2020-03-25T11:46:29.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T20:06:37.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T11:48:05.868Z (4 months ago)
- Topics: discord, discord-bot, discord-go, discordgo
- Language: Go
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Random Useless Facts (RUF)
[](https://top.gg/bot/692343582727602197)
Discord bot which send random useless facts using https://uselessfacts.jsph.pl/
## Usage
Invite the bot by clicking on [this link](https://discordapp.com/oauth2/authorize?client_id=692343582727602197&permissions=0&scope=bot "Invire RUF")
On your discord server you'll be able to use the three commands `°help`, `°random` and `°today`
- `°help` → Get a help message from the bot
- `°random` or `°fact` → Get a random useless fact (A new one each request)
- `°today` → Get useless fact of today (Updates every 24 hours)## Implementation
The bot use [Random Useless Facts](https://uselessfacts.jsph.pl/ "Random Useless Facts API") API.
The bot have two commands:
- `°random` or `°fact` → call the url [https://uselessfacts.jsph.pl/random.json?language=en](https://uselessfacts.jsph.pl/random.json?language=en)
- `°today` → call the url [https://uselessfacts.jsph.pl/today.json?language=en](https://uselessfacts.jsph.pl/today.json?language=en)In the documentation of the api you can choose the language.
Here, the bot make all his requests with the `language=en` query parameter.