Skip to content

Commit

Permalink
Only sync on command (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibanner56 authored Feb 25, 2024
1 parent 150c2df commit 93c5012
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions otherdave/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async def cmd_spend(interaction: discord.Interaction) -> None:
description = "Only Isaac can touch me there."
)
async def cmd_sync(interaction: discord.Interaction) -> None:
if (interaction.user.id == config.isaacid):
if (interaction.user.id == int(config.isaacid)):
# Sync command tree
global synced
if (not synced):
Expand Down Expand Up @@ -427,12 +427,6 @@ async def on_ready() -> None:
# Add command groups
await client.add_cog(MimicCog(client))

# Sync command tree
global synced
if (not synced):
await client.tree.sync()
synced = True

global otherotherdave
otherotherdave = await client.fetch_user(config.daveid)

Expand Down

0 comments on commit 93c5012

Please sign in to comment.