Skip to content

Commit

Permalink
Merge pull request #287 from The-4th-Hokage/deepsource-fix-13d3317a
Browse files Browse the repository at this point in the history
Use literal syntax to create data structure
  • Loading branch information
Dhruvacube authored Oct 31, 2021
2 parents 10bde11 + 6e2aeb8 commit 661e771
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions minato_namikaze/bot_files/cogs/fun/random_fun_games.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,7 @@ async def magic(self, ctx, user: discord.Member = None):
@commands.cooldown(1, 40, commands.BucketType.guild)
async def qr(self, ctx, colour="255-255-255", *, url=None):
"""Generates easy QR Code"""
colours = dict([
("255-255-255", "255-255-255"),
("black", "0-0-0"),
("red", "FF0000"),
("blue", "00f"),
])
colours = {"255-255-255": "255-255-255", "black": "0-0-0", "red": "FF0000", "blue": "00f"}
col = ["black", "red", "blue"]
if colour == "255-255-255":
col = ["255-255-255", "red", "blue"]
Expand Down

0 comments on commit 661e771

Please sign in to comment.