Skip to content

Commit c3cfb0a

Browse files
committed
🚑
1 parent c2a6d14 commit c3cfb0a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

cogs/fun.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ async def callback(self, interaction: discord.Interaction):
6666

6767
result_embed = discord.Embed(color=0x9C84EF)
6868
result_embed.set_author(
69-
name=interaction.user.name, icon_url=interaction.user.avatar.url)
69+
name=interaction.user.name,
70+
icon_url=interaction.user.avatar.url
71+
)
7072

7173
if user_choice_index == bot_choice_index:
7274
result_embed.description = f"**That's a draw!**\nYou've chosen {user_choice} and I've chosen {bot_choice}."

cogs/owner.py

-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
from discord.ext.commands import Context
1717
from helpers import checks, db_manager
1818

19-
if not os.path.isfile("config.json"):
20-
sys.exit("'config.json' not found! Please add it and try again.")
21-
else:
22-
with open("config.json") as file:
23-
config = json.load(file)
24-
2519

2620
class Owner(commands.Cog, name="owner"):
2721
def __init__(self, bot):

0 commit comments

Comments
 (0)