Visit http://www.reddit.com/r/storybot if you have any questions about the bot!
- PHP
- cURL
- Cron job (if not planning to moderate)
- MySQL
- gzip functions
- json functions
Copy all the files found in the repository to a new directory on your server.
In your web host, create a new database with any name you'd like and add a new MySQL user to it with full permissions. In phpMyAdmin or some other database editor, import "storybot.sql" (found in the directory you copied the files to in the previous step) into the database you just created. If you receive no errors, you should see some tables populating the database.
- Create a new Google account (or, you can use an existing one).
- Visit this page and click "Unlock": https://accounts.google.com/b/0/DisplayUnlockCaptcha
- Enable 2-Step Verification in Settings
- Generate a new App Password for "other" at this page: https://security.google.com/settings/security/apppasswords
- Visit your web host in the directory Storybot was copied to, and it should automatically redirect you to /install/. Fill out your MySQL details and if you receive any errors when you continue the installer, simply press the BACK button on your browser and correct them.
- Input your Snapchat username and password. Then, input your Google username (include the domain [@gmail.com, etc]) and the app password you created in Step 4 of the Google account setup. Submit the form.
- If you receive an incorrect Snapchat or Google username/password error, and you're 100% sure the username and password are correct, press the BACK button on your browser and resubmit the form with the same details - not really sure why, but it usually works on the second time if not the first.
- Fill out options you'd like - moderation, time for picture snaps, videos allowed, etc.
- Submit the form and you should receive a "Storybot has been successfully installed" page!
- Delete the /install/ directory for security purposes. You can now send snaps to the account and have them appear in the moderation queue! If you wanted every snap to be auto uploaded to the story without moderation, now you can create a Cron job in your web host for some time interval with the command:
curl http://www.yoursite.com/storybot/bot.php
(replace the URL with the location of your bot.php).
####Enjoy!