A bot providing an efficient way to execute r/MildlyInteresting's preventive restriction policy.
So, how does this policy work? You can learn everything from the link above, but TL;DR for every time mods remove your post, you get one strike. Three strikes, and you're banned*
* The bot does not ban the user, but sends you a modmail every time a user reaches three strikes.
To set up the bot, you'll need a client ID and a client secret. Get those by making a script-type app at https://reddit.com/prefs/apps
This is the recommended route, as it's much more straightforward and requires less technical skills.
For this path, you will need to install Docker.
docker pull xeoth/mildmodbot to pull the image.env.txt file and put the following content inside:MMB_USERNAME=your_bot_username
MMB_PASSWORD=your_bot_password
MMB_CLIENT_ID=your_bot_client_id
MMB_CLIENT_SECRET=your_bot_client_secret
MMB_SUBREDDIT=mildlyinteresting
docker run --env-file ./env.txt --restart unless-stopped --detach xeoth/mildmodbot (of course replacing ./env.txt with the actual path to that file).You should see an ID printed out. To see whether it works, use docker ps and check if "Up X seconds" is the status of xeoth/mildmodbot. If so, it should be up and running. Check your sub's modlog to see whether it's assigning flairs.
You can view the logs using docker logs [container ID here] or with the desktop app.
$env:MMB_CLIENT_ID="your client ID"
$env:MMB_CLIENT_SECRET="your client secret"
$env:MMB_USERNAME="your bot's username"
$env:MMB_PASSWORD="your bot's password"
$env:MMB_SUBREDDIT="your subreddit"
git clone https://github.com/Xeoth/MildModBot.git (you may need to install git first; if you don't want to install it, download the code as ZIP and unpack it).cd into the newly created MildModBot folderpy -m venv venv to create a virtual environment, and activate it via .\venv\Scripts\activate.ps1 (you may need to install Python first)pip3 install -r requirements.txt to install bot's dependenciespy src\index.py to run the bot.If you did everything right, you will get a message saying "INFO: The bot is running."
export MMB_CLIENT_ID="your client ID" \
MMB_CLIENT_SECRET="your client secret" \
MMB_USERNAME="your bot's username" \
MMB_PASSWORD="your bot's password" \
MMB_SUBREDDIT="your subreddit"
git clone https://github.com/Xeoth/MildModBot.git (you may need to install git first; if you don't want to install it, download the code as ZIP and unpack it).cd into the newly created MildModBot folderpython3 -m venv venv to create a virtual environment, and activate it via ./venv/bin/activate. (you may need to install Python first)pip3 install -r requirements.txt to install bot's dependenciespython3 src/index.py to run the bot.If you did everything right, you will get a message saying "INFO: The bot is running."
Content type
Image
Digest
Size
45.2 MB
Last updated
over 5 years ago
docker pull xeoth/mildmodbot