diff options
| author | 2021-05-04 12:57:03 -0400 | |
|---|---|---|
| committer | 2021-05-04 12:57:03 -0400 | |
| commit | a6cc40ff3b323dff112d7f8c339e124f3a6d9980 (patch) | |
| tree | f0cdec46d302cfc629fe9277df5cfbe6251a861b /bot/exts/easter/save_the_planet.py | |
| parent | chore: Don't return a Message object when the return annotation is None (diff) | |
chore: Prefer double quotes over single quotes
Diffstat (limited to 'bot/exts/easter/save_the_planet.py')
| -rw-r--r-- | bot/exts/easter/save_the_planet.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/easter/save_the_planet.py b/bot/exts/easter/save_the_planet.py index db9d3498..444bb030 100644 --- a/bot/exts/easter/save_the_planet.py +++ b/bot/exts/easter/save_the_planet.py @@ -8,14 +8,14 @@ from bot.bot import Bot from bot.utils.randomization import RandomCycle -with Path("bot/resources/easter/save_the_planet.json").open('r', encoding='utf8') as f: +with Path("bot/resources/easter/save_the_planet.json").open("r", encoding="utf8") as f: EMBED_DATA = RandomCycle(json.load(f)) class SaveThePlanet(commands.Cog): """A cog that teaches users how they can help our planet.""" - @commands.command(aliases=('savetheearth', 'saveplanet', 'saveearth')) + @commands.command(aliases=("savetheearth", "saveplanet", "saveearth")) async def savetheplanet(self, ctx: commands.Context) -> None: """Responds with a random tip on how to be eco-friendly and help our planet.""" return_embed = Embed.from_dict(next(EMBED_DATA)) |