Skip to content

Commit

Permalink
fix for remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Setlerr committed Jul 8, 2022
1 parent 973d531 commit 4ed0046
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// Aby uzyskać więcej informacji, odwiedź stronę: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Python: bieżący plik",
"type": "python",
Expand Down
1 change: 1 addition & 0 deletions cogs/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async def rm(self, ctx,*,word: str):
check_position = text.find("Created by: ")
check_text = text[check_position:]
text = text[:check_position]
text = text.replace(str(ctx.author.mention),word,1)
text = text.replace(str(ctx.author.name),word,1)
await event.edit(content=text+check_text)
await ctx.message.delete()
Expand Down

0 comments on commit 4ed0046

Please sign in to comment.