I'm trying to make a discord "dad bot" that responds to commands. When anyone says "I'm" it will print out Hi "whatever they inputted" I'm dad bot and this worked fine but a lot of my friends put in "im" instead of "I'm" meaning I allowed that as well but now it triggers with words ending in "im" like him or aim.

This is the code I have tried, I have also tried cycling through the array using a for loop.

```
im = ["aim", "bim", "cim", "dim", "eim", "fim", "gim", "him", "iim", "jim", "kim", "lim", "mim", "nim", "oim", "pim", "qim", "rim", "sim", "tim", "uim", "vim", "wim", "xim", "yim", "zim"]

#part of a larger if statement 
elif ("i'm " in message.content.lower() or "im " in message.content.lower()) and not message.content.lower() in im:
    if "i'm" in message.content:
        you = message.content.split("i'm")
    elif "im" in message.content:
        you = message.content.split("im")
    elif "Im" in message.content:
        you = message.content.split("Im")
    else:
        you = message.content.split("I'm")
    await message.channel.send(f"""Hi{you.pop(1)} I'm Dadbot""")

```

I have also tried to use a for loop like this

```
if "im" in message.content:
                for x in im:
                    if im(x) in message.content:
                        go = 1
                        break
                    go = 0
            if go == 1:

```

The code should just ignore any other text and should only respond to "im", "Im", "I'm" and "I'm"

With something that looks like this :

```
User:

"I'm hungry"

Dad bot:

"Hi hungry I'm Dadbot"

```

This is the error that I get:

```
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\discord\client.py", line 251, in _run_event
    await coro(*args, **kwargs)
  File "C:/Users/User/PycharmProjects/dadBot/dadBot.py", line 26, in on_message
    elif ("i'm " in message.content.lower() or "im " in message.content.lower()) and not im in message.content.lower():
TypeError: 'in <string>' requires string as left operand, not list

```