LPgenerator / mattermost_bot

MatterBot - A chat bot for MatterMost (http://www.mattermost.org).
MIT License
211 stars 60 forks source link

How to interact with the bot? #30

Closed calcazar01 closed 7 years ago

calcazar01 commented 7 years ago

Hi, I was able to install the bot in my centos 6 installation and run it but I've tried everything to interact with the bot in the mattermost client without any success.. Maybe I'm doing something wrong, is there a specific way to activate the bot in the client after I run the bot? In slack I would interact with slackbot by writing @slackbot hi or any other parameter, but in the mattermost client, I've tried everything @mattermost_bot, @mattermost-bot, ect.. and no matter what combination, I get nothing. Please help!

This is the output after I start the bot [root@mattermost ~]# matterbot /usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:334: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings SNIMissingWarning /usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning /usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning /usr/local/lib/python2.7/site-packages/requests/packages/urllib3/util/ssl_.py:132: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecurePlatformWarning [11/28/2016 16:03:28] connected to mattermost [11/28/2016 16:03:28] loading plugin "mattermost_bot.plugins" [11/28/2016 16:03:28] registered respond_to plugin "sleep_reply" to "sleep (.*)" [11/28/2016 16:03:28] registered respond_to plugin "ping_reply" to "ping" [11/28/2016 16:03:28] registered listen_to plugin "help_request" to "^\!help$" [11/28/2016 16:03:28] registered respond_to plugin "help_request" to "^\!help$" [11/28/2016 16:03:28] registered listen_to plugin "info_request" to "^\!info$" [11/28/2016 16:03:28] registered respond_to plugin "info_request" to "^\!info$" [11/28/2016 16:03:28] registered respond_to plugin "wrapper" to "^admin$" [11/28/2016 16:03:28] registered respond_to plugin "busy_reply" to "^busy|jobs$" [11/28/2016 16:03:28] registered respond_to plugin "hello_reply" to "hello$" [11/28/2016 16:03:28] registered listen_to plugin "hello_reply_formatting" to "hello_formatting$" [11/28/2016 16:03:28] registered respond_to plugin "hello_reply_formatting" to "hello_formatting" [11/28/2016 16:03:28] registered listen_to plugin "hello_send" to "hello$" [11/28/2016 16:03:28] registered respond_to plugin "hello_decorators" to "hello_decorators" [11/28/2016 16:03:28] registered listen_to plugin "hello_decorators" to "hello_decorators" [11/28/2016 16:03:28] registered respond_to plugin "web_api_reply" to "hello_web_api" [11/28/2016 16:03:28] registered listen_to plugin "hello_comment" to "hello_comment" [11/28/2016 16:03:28] registered listen_to plugin "hello_react" to "hello_react" [11/28/2016 16:03:28] keep active thread started

gotlium commented 7 years ago

Hi, very strange behaviour. You can try to send private message to the bot. Or add print on code:

        # file: mattermost_bot/mattermost.py, line: 189
        while True:
            data = self.websocket.recv()
            print (data)

Which version of matterbot and mattermost is used?