using new gitlab webhook
This commit is contained in:
parent
54bee59aa8
commit
155ff9244e
1 changed files with 26 additions and 23 deletions
|
@ -51,6 +51,7 @@ class ConfrerieDuKassoulait(commands.Cog):
|
|||
|
||||
@commands.Cog.listener()
|
||||
async def on_message_delete(self, message):
|
||||
try:
|
||||
if message.author.guild.id == 441208120644075520: # Confrérie du Kassoulait
|
||||
prefix = await self.client.get_prefix(message)
|
||||
if not (
|
||||
|
@ -78,10 +79,12 @@ class ConfrerieDuKassoulait(commands.Cog):
|
|||
await channel.send(embed = embed)
|
||||
# ne fonctionne pas quand un message a été supprimé avant que le bot ai démarré
|
||||
# info sur la personne qui a supprimé ne fonctionne pas si il a supprimé un message auparavant (les logs se rajoute a un log deja existant)
|
||||
except: # ignore error when deleting webhook message
|
||||
pass
|
||||
|
||||
@commands.Cog.listener()
|
||||
async def on_message(self, message):
|
||||
if message.author.id == 786897204816117771 and message.author.name == "GitHub" and message.author.bot: # Autopublish
|
||||
if message.author.id == 869726667294248970 and message.author.bot: # Autopublish
|
||||
await message.publish()
|
||||
|
||||
# autre serveur
|
||||
|
|
Reference in a new issue