Fixed small typo in fun, f-String in akuma.py
This commit is contained in:
parent
52655b0c4b
commit
f31da623ed
5
akuma.py
5
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"])
|
||||
|
@ -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"):
|
||||
|
Loading…
x
Reference in New Issue
Block a user