Skip to content
DarkMio edited this page Aug 30, 2015 · 5 revisions

My bot crashes instantly, telling me that praw-multiprocess is not running.

If you have installed PRAW with pip then you should be able to run praw-multiprocess from your console. It is necessary to limit the maximum amount of API requests outlined by Reddit.

How do I login my plugin? How do I use OAuth for it?

Every plugin needs a seperate OAuth file. You can create an app on your main account here - and most importantly is setting the callback-url to http://127.0.0.1:65010/authorize_callback. Now copy/paste the App Key and the App Secret and log in your browser with your bots account. Instantiate (by either running the core bot or the plugin itself) the plugin and while trying to authenticate, it will open the Reddit OAuth dialog. Accept it and the credentials (token, refresh token) are automatically added.

My bot is slow, doesn't react, it takes ages to load, responses are only there after several hours.

The most likely answer: One of your plugin loads on every trigger more data than what is in a PRAW Lazy Object. I highly suggest you to read your praw-multiprocess console - if it isn't loading most of the time between /r/[subreddit]/new.json?count=0&limit&after=t3_something and /r/[subreddit]/comments/.json?count=0&limit=1024&after=t1_something, then you most likely got trapped in lazy loading.