Skip to content

Commit d773525

Browse files
authored
Merge pull request #945 from allthingslinux/862-feature-assetsdata
feat: add assets/data for data files, refactor facts, improve substitutions, add __init__.py into tux/extensions
2 parents d88e22b + 6a93645 commit d773525

File tree

7 files changed

+221
-204
lines changed

7 files changed

+221
-204
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ site/
169169
# extensions
170170
tux/extensions/*
171171
!tux/extensions/README.md
172+
!tux/extensions/__init__.py
172173

173174
# misc
174175
slim.report.json

assets/data/facts.toml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Available substitutions:
2+
# {member_count} - total member count of all guilds
3+
# {guild_count} - total guild count
4+
# {bot_name} - bot name
5+
# {bot_version} - bot version
6+
# {prefix} - bot prefix
7+
8+
[facts.linux]
9+
name = "Linux"
10+
facts = [
11+
"The Linux kernel has over 36 million lines of code in its Git repository.",
12+
"The vast majority of the world's supercomputers run on Linux.",
13+
"Linux 1.0 was launched on September 17, 1991 featuring 176,250 lines of code.",
14+
"There's an easter egg in `apt` if you enter `apt moo`.",
15+
"Linus Torvalds was around 22 years old when he started work on the Linux Kernel in 1991. In the same year, he also released prototypes of the kernel publicly.",
16+
"Linux's 1.0 release was in March 1994.",
17+
"Less than 1% of the latest kernel release includes code written by Linus Torvalds.",
18+
"Approximately 13.3% of the latest Linux kernel is made up of blank lines.",
19+
"Vim has various easter eggs. A notable one is found by typing :help 42 into the command bar.",
20+
"Slackware is the oldest active linux distribution being released on the 17th July 1993.",
21+
"Freax was the original planned name for Linux.",
22+
"The first GUI that ran on Linux was X Window System. It ran on Linux Kernel version 0.95.",
23+
"The Linux Kernel was the first OS kernel to support x86-64 in 2001.",
24+
"Over 14,600 individual developers from over 1,300 different companies have contributed to the kernel.",
25+
"95% of the Linux kernel is written in the C programming Language. Assembly language is the second most used language for Linux at 2.8%.",
26+
"The first kernel version - Version 0.01 - contained about 10,000 lines of code.",
27+
"96.3% of the top 1,000,000 web servers were reported to run on Linux.",
28+
"In the early 2000s, Steve Jobs, who at the time was the CEO of Apple, offered a job to Linus Torvalds to work on OSX which Torvalds declined.",
29+
"Linus Torvalds said that he would have never created Linux if FreeBSD had been available at the time.",
30+
"Linux is used by every major space programme in the world including NASA, SpaceX, and the European Space Agency.",
31+
]
32+
33+
[facts.cat]
34+
name = "Cat"
35+
fact_api_url = "https://catfact.ninja/fact"
36+
fact_api_field = "fact"
37+
38+
[facts.useless]
39+
name = "Useless"
40+
fact_api_url = "https://uselessfacts.jsph.pl/api/v2/facts/random?language=en"
41+
fact_api_field = "text"
42+
43+
[facts.tux]
44+
name = "{bot_name}"
45+
facts = [
46+
"As of 2025, {bot_name} has over 20 thousand lines of code.",
47+
"The first stable release of {bot_name} was over 1 year after its creation.",
48+
"{bot_name} is fully open source and available on GitHub (https://github.com/allthingslinux/tux). Unless you forked it and made it private, in which case, please make it public (GPLv3).",
49+
]
50+
51+
[facts.taco_bell]
52+
name = "Taco Bell"
53+
facts = [
54+
"It didn't start with tacos. Before Taco Bell, founder Glen Bell created fast-food joint Taco Tia, offering hamburgers, hot dogs, milkshakes and tacos. Seeing the success of the tacos, Bell eventually launched Taco Bell in 1962 in Downey, Calif.",
55+
"Originally, all menu items were only $0.19. In its early days in the 1960s, Taco Bell's menu only offered a limited number of classic options including tacos, burritos, frijoles and tostadas. Each item cost only $0.19.",
56+
"Taco Bell's original menu offered chiliburgers, alongside tacos and burritos. The chiliburgers were eventually taken off the menu.",
57+
"The first Taco Bell location featured fire pits and mariachi bands. It was an outdoor hangout with a walk-up window and no indoor seating.",
58+
"PepsiCo used to own Taco Bell. PepsiCo acquired Taco Bell in 1978 as part of its Yum! Brands portfolio until 1997.",
59+
"Taco Bell was the first fast food chain to hire women as managers, valuing diverse leadership early on.",
60+
"The Taco Bell Chihuahua Gidget also starred in the movie 'Legally Blonde 2' after popularizing the line 'Yo quiero Taco Bell' in commercials.",
61+
"Gidget lived like a star: she flew first class, opened the New York Stock Exchange, appeared at Madison Square Garden, and died in 2009 at 15 years old.",
62+
"Taco Bell's beef contains 88% beef and 12% 'secret recipe', after a lawsuit in 2011 claimed it was only 35% beef.",
63+
"Creedence Clearwater Revival ate there. A 1968 photo shows the band at Taco Bell, and Macaulay Culkin has also been spotted there.",
64+
"Taco Bell once 'purchased' the Liberty Bell as an April Fools' prank in 1996, later pledging $50,000 to its upkeep to appease protestors.",
65+
"An angry college football star got stuck in a Taco Bell drive-thru window in 1999 after trying to retrieve a missing chalupa.",
66+
"Free tacos were offered if a piece of the deorbiting Mir space station landed on a target in 2001. No fragment hit the target.",
67+
"Taco Bell was sued by rapper 50 Cent in 2008 for unauthorized use of his name and image during the 'Why Pay More?' campaign.",
68+
"Infomercial icon Billy Mays signed to be Taco Bell's spokesperson in 2009 but died of heart failure before filming.",
69+
"Taco Bell petitioned the Federal Reserve in 2010 to bring back $2 bills to promote its $2 menu; the petition gained attention but no action.",
70+
"Taco Bell no longer has a kids' menu since 2013, aiming its focus on millennials and rebranding as an edgy brand.",
71+
"The Doritos Locos Taco added 15,000 jobs in 2012 due to its popularity, helping Taco Bell outgrow Pizza Hut, KFC, and McDonald's.",
72+
"It took two years and 40 different recipes to create the Doritos Locos Taco, which sells nearly 1 million units per day.",
73+
"Taco Bell attempted an upscale spin-off, U.S. Taco Co., in 2014, but it closed after one year due to pricing, quality, and licensing issues.",
74+
]

0 commit comments

Comments
 (0)