aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/evergreen/pythonfacts.py7
-rw-r--r--bot/resources/evergreen/python_facts.txt2
2 files changed, 6 insertions, 3 deletions
diff --git a/bot/exts/evergreen/pythonfacts.py b/bot/exts/evergreen/pythonfacts.py
index c0cdf111..734782b8 100644
--- a/bot/exts/evergreen/pythonfacts.py
+++ b/bot/exts/evergreen/pythonfacts.py
@@ -7,9 +7,11 @@ from discord.ext import commands
with open('bot/resources/evergreen/python_facts.txt') as file:
FACTS = list(file)
+COLORS = [0x4B8BBE, 0xFFD43B, ]
+
class PythonFacts(commands.Cog):
- """Gives a random fun fact about Python."""
+ """Sends a random fun fact about Python."""
def __init__(self, bot: commands.Bot) -> None:
self.bot = bot
@@ -17,7 +19,8 @@ class PythonFacts(commands.Cog):
@commands.command(name='pythonfact', aliases=['pyfact'])
async def get_python_fact(self, ctx: commands.Context) -> None:
"""Sends a Random fun fact about Python."""
- await ctx.send(embed=discord.Embed(title='Python Facts', description=random.choice(FACTS)))
+ embed = discord.Embed(title='Python Facts', description=random.choice(FACTS), colour=random.choice(COLORS))
+ await ctx.send(embed=embed)
def setup(bot: commands.Bot) -> None:
diff --git a/bot/resources/evergreen/python_facts.txt b/bot/resources/evergreen/python_facts.txt
index d9e63a11..0abd971b 100644
--- a/bot/resources/evergreen/python_facts.txt
+++ b/bot/resources/evergreen/python_facts.txt
@@ -1,3 +1,3 @@
-Python was named after Monty Python, which Guido van Rossum likes.
+Python was named after Monty Python, a British Comedy Troupe, which Guido van Rossum likes.
If you type `import this` in the Python REPL, you'll get a poem about the philosophies about Python. (check it out by doing !zen in <#267659945086812160>)
If you type `import antigravity` in the Python REPL, you'll be directed to an [xkcd comic](https://xkcd.com/353/) about how easy Python is.