WikiFact

Discord bot

WikiFact

Naghihintay ang bot listing na ito na ma-claim

Walang manager ang bot na ito sa ngayon. Kung ikaw ang may-ari, i-claim ito para i-edit ang listing at kunin ang ownership.

Tungkol

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.

Mga wika

  • English

Mga Review

1 · 1 review

Wala pang review — maging una sa pagbabahagi ng karanasan mo.

Stats ng boto

Naitala sa directory na ito sa nakaraang 30 araw.

0 Boto ngayong buwan
0 Kabuuang boto
0 Huling 7 araw
0 Natatanging botante · 30 araw

Huling 30 araw

  • Mga boto

Ayon sa araw ng linggo

Lun
Mar
Miy
Huw
Biy
Sab
Lin
WikiFact
WikiFact
0 server · 0 buwanang boto
Imbitahan