WikiFact

Discord bot

WikiFact

0 Servers
0 Monthly votes 0 All-time votes
1 Community reviews

This bot listing is waiting to be claimed

This bot does not have a manager at the moment. If you own this Discord bot, claim it to edit the listing and take ownership.

What this bot brings to your server

Spits out a random fact off the Wikipedia Unusual Articles page with !factme

Use command '!factme', it give u fact

How the leprechauns and fairy magic works:

Written in Python, the algorithm accesses the web to import the Wikipedia Unusual Articles page in HTML using the requests library.
The HTML data can then be parsed using the Beautiful Soup library to obtain a list of articles.
This list is only generated once upon start up, not each time the bot is called. This is done to minimize bot response time.
A random python function is then used to select an article. The chosen article will then be parsed one last time to obtain the title, description and link.
See github repository for code.

TLDR: You get a title, description and wiki link to a random unusual wiki article.

Languages

  • English

Community reviews

1 · 1 review

No reviews yet — be the first to share your experience.

Vote statistics

Recorded on this directory over the last 30 days.

0 Votes this month
0 All-time votes
0 Last 7 days
0 Unique voters · 30d

Last 30 days

  • Votes

By weekday

Mon
Tue
Wed
Thu
Fri
Sat
Sun
WikiFact
WikiFact
0 servers · 0 monthly votes
Invite