From f31da623edb9c1279ac31081c5e6e68290812af3 Mon Sep 17 00:00:00 2001 From: Akumatic Date: Sat, 5 Oct 2019 05:12:34 +0200 Subject: [PATCH] Fixed small typo in fun, f-String in akuma.py --- akuma.py | 5 ++--- extensions/fun.py | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/akuma.py b/akuma.py index 6b6f6db..8cd2348 100644 --- a/akuma.py +++ b/akuma.py @@ -30,10 +30,9 @@ class Akuma(commands.Bot): #loading extensions given in cfg for ext in self.cfg["extensions"]: try: - self.load_extension("extensions." + ext) + self.load_extension(f"extensions.{ext}") except Exception as e: - print("Failed to load extension \"{}\": {}".format(ext, - "{} ({})".format(type(e).__name__, e))) + print(f"Failed to load extension '{ext}': {f'{type(e).__name__} ({e})'}") def run(self): super().run(self.cfg["token"]) diff --git a/extensions/fun.py b/extensions/fun.py index 9ac7442..37cefeb 100644 --- a/extensions/fun.py +++ b/extensions/fun.py @@ -91,7 +91,7 @@ class Fun(commands.Cog): e.color=discord.Color.blue() com = random.choice(["r", "p", "s"]) e.add_field(name="You", value=emote[user], inline=True) - e.add_field(name="Computers", value=emote[com], inline=True) + e.add_field(name="Computer", value=emote[com], inline=True) if (user == "r" and com == "p") or (user == "p" and com == "s") or (user == "s" and com == "r"): e.add_field(name=":moyai::newspaper::scissors:", value="You lose") elif (user == "r" and com == "s") or (user == "p" and com == "r") or (user == "s" and com == "p"):