removing autopublish and adding it to my personal cog
This commit is contained in:
parent
2eb182b73d
commit
e1e5137954
3 changed files with 4 additions and 17 deletions
|
@ -1,15 +0,0 @@
|
||||||
from discord.ext import commands
|
|
||||||
|
|
||||||
def setup(client):
|
|
||||||
client.add_cog(Autopublish(client))
|
|
||||||
|
|
||||||
class Autopublish(commands.Cog):
|
|
||||||
"""Autopublish."""
|
|
||||||
|
|
||||||
def __init__(self, client):
|
|
||||||
self.client = client
|
|
||||||
|
|
||||||
@commands.Cog.listener()
|
|
||||||
async def on_message(self, message):
|
|
||||||
if message.author.id == 786897204816117771 and message.author.name == "GitHub" and message.author.bot:
|
|
||||||
await message.publish()
|
|
|
@ -105,9 +105,12 @@ class ConfrerieDuKassoulait(commands.Cog):
|
||||||
# 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)
|
# 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)
|
||||||
|
|
||||||
|
|
||||||
# autre serveur
|
|
||||||
@commands.Cog.listener()
|
@commands.Cog.listener()
|
||||||
async def on_message(self, message):
|
async def on_message(self, message):
|
||||||
|
if message.author.id == 786897204816117771 and message.author.name == "GitHub" and message.author.bot: # Autopublish
|
||||||
|
await message.publish()
|
||||||
|
|
||||||
|
# autre serveur
|
||||||
if message.channel.id == 770805818487865404 or message.channel.id == 772239638240165928: # Le groupe de l'amour ❤❤ -- channel chien/chat
|
if message.channel.id == 770805818487865404 or message.channel.id == 772239638240165928: # Le groupe de l'amour ❤❤ -- channel chien/chat
|
||||||
chiens = ["dog", "chien", "potichien", "doggo"]
|
chiens = ["dog", "chien", "potichien", "doggo"]
|
||||||
chats = ["kat", "mace", "kater", "katze", "sinta", "minoos", "cat", "qitt", "besseh", "katu", "caun", "kazh",
|
chats = ["kat", "mace", "kater", "katze", "sinta", "minoos", "cat", "qitt", "besseh", "katu", "caun", "kazh",
|
||||||
|
|
|
@ -18,7 +18,6 @@ client.load_extension("cogs.internet")
|
||||||
client.load_extension("cogs.music")
|
client.load_extension("cogs.music")
|
||||||
client.load_extension("cogs.games")
|
client.load_extension("cogs.games")
|
||||||
client.load_extension("cogs.fun")
|
client.load_extension("cogs.fun")
|
||||||
client.load_extension("cogs.autopublish")
|
|
||||||
client.load_extension("cogs.school")
|
client.load_extension("cogs.school")
|
||||||
client.load_extension("cogs.confreriedukassoulait") # you can remove this cogs, only for my private guild
|
client.load_extension("cogs.confreriedukassoulait") # you can remove this cogs, only for my private guild
|
||||||
print("Terminé !")
|
print("Terminé !")
|
||||||
|
|
Reference in a new issue