Skip to content

Commit

Permalink
🚑
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrypt0nn committed Sep 30, 2022
1 parent c2a6d14 commit c3cfb0a
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 3 additions & 1 deletion cogs/fun.py
Original file line number Diff line number Diff line change
@@ -66,7 +66,9 @@ async def callback(self, interaction: discord.Interaction):

result_embed = discord.Embed(color=0x9C84EF)
result_embed.set_author(
name=interaction.user.name, icon_url=interaction.user.avatar.url)
name=interaction.user.name,
icon_url=interaction.user.avatar.url
)

if user_choice_index == bot_choice_index:
result_embed.description = f"**That's a draw!**\nYou've chosen {user_choice} and I've chosen {bot_choice}."
6 changes: 0 additions & 6 deletions cogs/owner.py
Original file line number Diff line number Diff line change
@@ -16,12 +16,6 @@
from discord.ext.commands import Context
from helpers import checks, db_manager

if not os.path.isfile("config.json"):
sys.exit("'config.json' not found! Please add it and try again.")
else:
with open("config.json") as file:
config = json.load(file)


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

0 comments on commit c3cfb0a

Please sign in to comment.