Add a Bot to Channels

@sheiun

Hi Bro, I think I found the solution.
I don’t know if you still need the solution, but I’ll write it here as a note.

Here are the steps:

  1. Make a bot (follow the steps here), Please remember the {bot_username}
  2. Go to CLI and convert it into a normal user
mattermost user convert {bot_username} --user --email {avaliable.mailaddr@email.com} --password {bot_password}
  1. Go to your chatbot server and login with the {avaliable.mailaddr@email.com} and {bot_password}
    2.5. (You may need the mail verification. Do it.)
  2. Join the Team
  3. Run your bot with your {api_token} {avaliable.mailaddr@email.com} and {bot_username}

After these steps, your bot will be treated as a normal user. So you could invite it to any channels.

BTW, I am using the python bot module mmpy_bot

1 Like