Skip to content

Commit

Permalink
Fixed reboot command storing incorrect ID's
Browse files Browse the repository at this point in the history
  • Loading branch information
LobaDK committed Mar 30, 2024
1 parent 308c64d commit 3bf66ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/Entanglement.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,9 +1016,9 @@ async def status(self, ctx: commands.Context):
@commands.command()
@commands.is_owner()
async def reboot(self, ctx: commands.Context):
msg = await ctx.send("Shutting down extensions and rebooting...")
with open("rebooted", "w") as f:
f.write(f"{ctx.message.id}\n{ctx.channel.id}\n{ctx.guild.id}")
await ctx.send("Shutting down extensions and rebooting...")
f.write(f"{msg.id}\n{msg.channel.id}\n{msg.guild.id}")
for cog in listdir("./cogs"):
if cog.endswith(".py"):
try:
Expand Down

0 comments on commit 3bf66ce

Please sign in to comment.