This is my fucking bot script for fucking responding to u/CoolDownBot's fucking posts.
- Go to https://old.reddit.com/prefs/apps/
- Create a new app
- Give it a name, check "Script" and set the URLs to "http://localhost". Click "Create app".
- Take note of the following values:
client_id -> the string right under "Personal Use Script"
client_secret -> labeled as "secret"
-
Clone this repo to
~/FuckCoolDownBot -
Make a
~/.configs/praw.inifile with the following contents, filling in your own values
[FuckCoolDownBot2]
client_id=XXXXXXXXX
client_secret=XXXXXXXXXXXXXXXXXXXX
password=XXXXXXXXXXXXXXXXXX
username=XXXXXXXXXXXXXXXX
- Install Python dependencies
$ python3 -m pip install -r requirements.txt
- Run bot with
python3 bot.py
Start automatically as a service - figure it out :)
- Edit
fuckcooldownbot.serviceand replacepiwith your username - Copy
fuckcooldownbot.serviceto/etc/systemd/system/fuckcooldownbot.service.sudo cp fuckcooldownbot.service /etc/systemd/system/fuckcooldownbot.service - Reload systemd daemon
sudo systemctl daemon-reload - Enable and start bot
sudo systemctl enable fuckcooldownbot.service
sudo systemctl start fuckcooldownbot.service
- ...
- Profit