Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Python

Peter Javorkai
Peter Javorkai
31,477 Points

rtmbot.py file is missing, the repo has been updated. Here is what you can do:

I've ran into the same issue as some others before, with the missing file, so I try to make it clear step-by-step how you can make this work (at the current stage):

1 | clone the repo into your working directory (I assume you already have the token from Slack)

2 | pip install rtmbot from the directory (virtualenv also recommended)

3 | After you cloned the files inside the root you will find the rtmbot directory

4 | Inside the rtmbot directory you will find the bin dir, this is WHERE you need to put your rtmbot.conf file for the run_rtmbot.py like this:

DEBUG: True # make this False in production
SLACK_TOKEN: "YOUR TOKEN KEY"
ACTIVE_PLUGINS:
    - plugins.yourfilename.YourNamePlugin

let's break this down: plugins is your foler, motivation is your .py file with your functionality and the YourNamePlugin is the name of the method you defined inside the .py

5 | If you go back to the root/rtmbot/bin, here you need to create your plugins folder, and also put an init inside this plugins folder + yourfilename.py

6 | After this you just need to run the run_rtmbot.py from bin/ and it should run with the function you created

!Keep an eye on changes in the repo on github! Maybe it's the best to set to "watch" so you are not missing anything https://github.com/slackhq/python-rtmbot

1 Answer

Peter Javorkai
Peter Javorkai
31,477 Points

I haven't checked back on this one in the meantime, I hope it still works. :) @chrisfreeman3