Skip to content

Commit

Permalink
changed config name syntax. (added % to the end of the original guild…
Browse files Browse the repository at this point in the history
… name)
  • Loading branch information
itskekoff committed Jan 17, 2024
1 parent 47e1796 commit 8dd4542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ async def copy(ctx: commands.Context, *, args: str = ""):
if bot.get_guild(new_server_id) is None:
logger.info("Creating server...")
try:
new_guild: discord.Guild = await bot.create_guild(name_syntax.replace("%original", guild.name))
new_guild: discord.Guild = await bot.create_guild(name_syntax.replace("%original%", guild.name))
except discord.HTTPException:
logger.error(
"Unable to create server automatically. Create it yourself and run command with \"new=id\" argument")
Expand Down

0 comments on commit 8dd4542

Please sign in to comment.