Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slackbot "working" but not responding to messages #129

Open
vism2889 opened this issue May 2, 2017 · 4 comments
Open

Slackbot "working" but not responding to messages #129

vism2889 opened this issue May 2, 2017 · 4 comments

Comments

@vism2889
Copy link

vism2889 commented May 2, 2017

Hey Matt!
Grateful for the tutorial, and have gotten everything "working" up until the end when i try to actually interact with the bot. At that point it doesn't respond to anything. I'm using python 3.5.0 and have copied and pasted your code exactly and followed the steps of the tutorial from start to finish (except for the bot_token and bot_id which i have swapped with my own) to ensure correctness. Even get the "StarterBot connected and running" message in my terminal after running the script. Thanks for your time!

@vism2889
Copy link
Author

vism2889 commented May 2, 2017

i tried to mess around with some code, and i think the environment variable was the issue for some reason, after fiddling i got this Traceback:

Traceback (most recent call last):
File "morgstarterbot.py", line 10, in
AT_BOT = "<@" + BOT_ID + ">"
TypeError: Can't convert 'NoneType' object to str implicitly

After the fact i replaced the environment variables with the actual TOKEN and ID and it has since been working like shown near the end of your tutorial. I guess my question at this point is, am i forgetting something when setting up the virtualenv. Thanks again for your time!

@mattmakai
Copy link
Owner

hey @vism2889 I haven't tested this code with Python 3.5, however I'm wondering about the BOT_ID. is the value properly set when your bot is running?

@aweher
Copy link

aweher commented Nov 20, 2017

I've changed the code this way:
AT_BOT = "<@" + str(BOT_ID) + ">"

@mattmakai
Copy link
Owner

does that work though? if your BOT_ID is None, that's a problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants