Skip to content

Commit

Permalink
Update impersonation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DocileSphinx authored and bemxio committed Dec 4, 2024
1 parent cc5339e commit e390f78
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cogs/impersonation.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,13 @@ async def gold(self, ctx: commands.Context):
await webhook.send(embed=embed, avatar_url=ctx.author.display_avatar.url, username=ctx.author.name)
await session.close()

@commands.command()
async def delwebhook(self, ctx: commands.Context):
await WebhookManager.remove(self.webhooks, ctx.channel)

def setup(bot: commands.Bot):
bot.add_cog(Impersonation(bot=bot,
messages=MessageManager(bot.database, **bot.config["Chain"]),
webhooks=WebhookManager(bot.database),
blacklist=bot.database.blacklist
))
))

0 comments on commit e390f78

Please sign in to comment.