REKLAM ALANI

[Python] Reklam Engel Komudu

avatar ZeynepHANIM
Aktif Üye
286
#1
Yorumu Paylaş

Komudun Adı: [Python] Reklam Engel
Komut için Gerekli Modüller: discord.py, time (İmport Etmek: from time import sleep)
Komut Açıklaması: Reklam Engeller
Komutun Ekleneceği Yer: Main (bot.py, app.py)
Kod:
@client.event
async def on_message(message):
    reklam = [".com", ".net", ".gg", ".org"]

    for reklamlar in reklam:
        if(message.content.count(reklamlar) > 0):
            await message.delete()
            tempMsg = await message.channel.send("Bu sunucuda reklam yasaklanmıştır! Reklam yapmayın.")
            sleep(3)
            await tempMsg.delete()
deneme
Aktif Üye

Konuda Ara

0 Yorum


Konuyu Okuyanlar: