Mention reddit users enmass without having to manually create all the comments. The mentions will be in chained comments with the first sharing the same parent comment (or post if the comment is top level) of the comment that has the flag.
Fill out the fields in the .env file: the client_id
and client_secret
come from Reddit's developed app management page, the user_agent
is something you make up yourself in order to identify your traffic to Reddit, the username
and password
should be the credentials for a Reddit account that doesn't has 2-factor authentication enabled which will be used to actually do the mention posting, and monitored_user
is the username of the account that will signal the mentioning to happen.
The script uses poetry
as the dependency manager so install that, and then run poetry install
to install the script's dependencies. Run poetry run python3 mass_mentioner/mass_mentioner.py
from the base of the repo to start the script.
It's the usual Docker stuff, yall know what to do. As a reminder:
# calling Docker directly
docker build -t mass_mentioner:v0.2.0 .
docker run -d --rm mass_mentioner:v0.2.0
# using docker-compose
docker-compose up -d
Have the monitored user post a comment in the following format:
- Whatever text they want including newlines and whatnot.
!tags\n\n
, i.e. the text '!tags' followed by two new lines.- However many properly formatted yaml documents.
The yaml documents are relatively flexible.
You can:
- provide just an array of usernames
- provide a message that ought to be posted with every batch of usernames along with the array of usernames
- add specific notes on a per user basis
- with multiple documents, while they will still tag in the same chain, they can have separate messages
---
- example
- usernames
- that_exceed
- the_limit_of_3
---
- more_than
---
- one_document
---
message: example message
mentions:
- username
- name: user
note: personalized