Discord.py Bot : Sends with the loverate between 2 persons I'm creating a Discord Bot and i made a !love command which is testing the love rate between 2 persons or entities.
Example : !love Peignoir Emma
Result: The loverate between Peignoir and Emma is x%
Here's the code :
@bot.command(name=&quot;love&quot;, aliases=[&quot;l&quot;])
async def love(ctx, Personne1, Personne2):
    if ctx.message.channel.id != 763352957579690018:
        printIt = 1
        wordBanList = ['@everyone', '@here', '&lt;@&amp;763489250162507809&gt;','&lt;@&amp;777564025432965121&gt;','&lt;@&amp;822200827347075132&gt;',
                       '&lt;@&amp;763815680306184242&gt;','&lt;@&amp;764422266560839680&lt;','&lt;@&amp;763815728972300338&gt;','&lt;@&amp;763815728972300338&gt;',
                       '&lt;@&amp;763815228323528725&gt;','&lt;@&amp;763815784904261632&gt;','&lt;@&amp;764422166116171806&gt;','&lt;@&amp;764422057353936897&gt;',
                       '&lt;@&amp;804807279043674143&gt;','&lt;@&amp;828664814678179861&gt;','&lt;@&amp;823562218095640646&gt;','&lt;@&amp;823638574809219163&gt;']
        LoveRate = str(random.randrange(0, 100))
        for y in range(len(wordBanList)):
            if(Personne1 == wordBanList[y] or Personne2 == wordBanList[y]):
                printIt = 0

        if(printIt == 0):
            await ctx.send(&quot;Tu t'es pris pour qui ?&quot;)
            if debug == True:
                print(&quot;[DEBUG] !love : Someone tried to use a banned word !&quot;)
        else:
            await ctx.send(&quot;L'amour entre **&quot;+Personne1+&quot;** et **&quot;+Personne2+&quot;** est de **&quot;+LoveRate+&quot;%** &lt;:flushed:830502924479758356&gt;&quot;)
            if debug == True:
                print(&quot;[DEBUG] !love : The love rate (&quot;+LoveRate+&quot;%) between &quot;+Personne1+&quot; and &quot;+Personne2+&quot; has been printed in channel ID &quot;+str(ctx.channel.id))
    else:
        botChannel = discord.utils.get(ctx.guild.channels, id=768194273970880533)
        messageBot = await ctx.send(&quot;Va faire cette commande dans &quot;+botChannel.mention+&quot; ou je te soulève &lt;:rage:831149184895811614&gt;&quot;)
        await asyncio.sleep(5)
        await ctx.message.delete()
        await messageBot.delete()

I'm pretty sure this code is optimizable, but i don't know how, can somebody help me :) ?
Never iterate over indices in python
In Python this pattern is generally not recommended:
for y in range(len(wordBanList)):
    if(Personne1 == wordBanList[y] or Personne2 == wordBanList[y]):
        printIt = 0

You almost never need to iterate over and access elements by their indices. Instead you should directly iterate over the elements of the iterable:
for word in wordBanList:
    if Personne1 == word or Personne2 == word:
        printIt = 0

Also notice that you do not need the parentheses around the or statement.
If you do need the index as well you can use built-in enumerate:
for index, word in enumerate(wordBanList):
    ...


Membership tests
As Harsha pointed out, sets are optimized for membership tests, so use them when possible. Doing so can also make your assignment of printIt way more concise:
wordBanList = {'@everyone', '@here', '&lt;@&amp;763489250162507809&gt;', ...}
printIt = 0 if (Personne1 in wordBanList or Personne2 in wordBanList) else 1

Parantheses are also not required here, but might improve readability.

Naming convention
PEP 8:

Function names should be lowercase, with words separated by
underscores as necessary to improve readability.
Variable names follow the same convention as function names.

Variable and function names should follow snake_case.

debug == True
As a general rule of thumb, you should always use is with the built-in constants: True, False and None. It might also suffice to check debug for truthiness (if debug:). This however depends on the use case, since the expressions are not equivalent. The second one will fail for all falsey values, not just False (e.g. an empty string, an empty list). If you're interested, you can read more about Truthy and Falsy Values in Python.

String formatting
LoveRate = str(random.randrange(0, 100))

LoveRate (or better love_rate) should not be of type str, since you only need its str-represantation to print it. You can let Python handle formatting for you, by using f-strings. That way you never have to think about casting to str.
print(&quot;[DEBUG] !love : The love rate (&quot;+LoveRate+&quot;%) between &quot;+Personne1+&quot; and &quot;+Personne2+&quot; has been printed in channel ID &quot;+str(ctx.channel.id))

becomes
print(f&quot;[DEBUG] !love : The love rate ({LoveRate}%) between {Personne1} and {Personne2} has been printed in channel ID {ctx.channel.id}&quot;)


A few other small points:

Instead of wrapping the main code inside an if-else-block we can use ctx.message.channel.id == 763352957579690018 as an exit condition.
print_it is of type int, but basically acts as a variable of type bool. We can also eliminate that variable entirely, since we only use it once.
Line length should ideally not exceed 80 characters. You can use parantheses to conveniently concatenate strings across multiple lines, as described in this reddit tip. My IDE is set to hard wrap only at 100 characters, so that's the maximum length for the lines below.

@bot.command(name=&quot;love&quot;, aliases=[&quot;l&quot;])
async def love(ctx, personne1, personne2):
    if ctx.message.channel.id == 763352957579690018:
        bot_channel = discord.utils.get(ctx.guild.channels, id=768194273970880533)
        message_bot = await ctx.send(f&quot;Va faire cette commande dans {bot_channel.mention} &quot;
                                     f&quot;ou je te soulève &lt;:rage:831149184895811614&gt;&quot;)
        await asyncio.sleep(5)
        await ctx.message.delete()
        await message_bot.delete()
        return

    word_ban_list = {'@everyone', '@here', '&lt;@&amp;763489250162507809&gt;', '&lt;@&amp;777564025432965121&gt;',
                     '&lt;@&amp;822200827347075132&gt;', '&lt;@&amp;763815680306184242&gt;', '&lt;@&amp;764422266560839680&lt;',
                     '&lt;@&amp;763815728972300338&gt;', '&lt;@&amp;763815728972300338&gt;', '&lt;@&amp;763815228323528725&gt;',
                     '&lt;@&amp;763815784904261632&gt;', '&lt;@&amp;764422166116171806&gt;', '&lt;@&amp;764422057353936897&gt;',
                     '&lt;@&amp;804807279043674143&gt;', '&lt;@&amp;828664814678179861&gt;', '&lt;@&amp;823562218095640646&gt;',
                     '&lt;@&amp;823638574809219163&gt;'}

    love_rate = str(random.randrange(0, 100))

    if personne1 in word_ban_list or personne2 in word_ban_list:
        await ctx.send(&quot;Tu t'es pris pour qui ?&quot;)
        if debug:
            print(&quot;[DEBUG] !love : Someone tried to use a banned word !&quot;)
    else:
        await ctx.send(f&quot;L'amour entre **{personne1}** et **{personne2}** est de **{love_rate}%** &quot;
                       f&quot;&lt;:flushed:830502924479758356&gt;&quot;)
        if debug:
            print(f&quot;[DEBUG] !love : The love rate ({love_rate}%) between {personne1} and&quot;
                  f&quot;{personne2} has been printed in channel ID {ctx.channel.id}&quot;)