Updated readme
This commit is contained in:
73
README.md
73
README.md
@@ -90,6 +90,18 @@ information to a public (or even private) code repository.
|
|||||||
|
|
||||||
### praw.ini
|
### praw.ini
|
||||||
|
|
||||||
|
Several credentials are needed for running your bot, each of which is listed in
|
||||||
|
the `praw.ini` config file:
|
||||||
|
|
||||||
|
* `client_id`: Copy from your app preferences, as specified in the steps below.
|
||||||
|
* `client_secret`: Copy from your app preferences, as specified in the steps
|
||||||
|
below.
|
||||||
|
* `user-agent`: This field can be left as-is, thought if you'd like, you can
|
||||||
|
change it by following
|
||||||
|
[these guidelines](https://github.com/reddit-archive/reddit/wiki/API).
|
||||||
|
* `username`: The username for the bot account.
|
||||||
|
* `password`: The password for the bot account.
|
||||||
|
|
||||||
In order to make a bot, you must first have a bot account. This could be a
|
In order to make a bot, you must first have a bot account. This could be a
|
||||||
personal account, but it is wise to create a dedicate account for the bot,
|
personal account, but it is wise to create a dedicate account for the bot,
|
||||||
especially one with the word "bot" somewhere in the name.
|
especially one with the word "bot" somewhere in the name.
|
||||||
@@ -118,18 +130,6 @@ can be found by navigating to your
|
|||||||
[app preferences](https://www.reddit.com/prefs/apps) and selecting the "edit"
|
[app preferences](https://www.reddit.com/prefs/apps) and selecting the "edit"
|
||||||
button for the app under the "developed applications" section.
|
button for the app under the "developed applications" section.
|
||||||
|
|
||||||
Several credentials are needed for running your bot, each of which is listed in
|
|
||||||
the `praw.ini` config file:
|
|
||||||
|
|
||||||
* `client_id`: Copy from your app preferences, as specified in the previous
|
|
||||||
steps.
|
|
||||||
* `client_secret`: Copy from your app preferences, as specified in the previous
|
|
||||||
steps.
|
|
||||||
* `user-agent`: This field can be left as-is, thought if you'd like, you can
|
|
||||||
change it by following [these guidelines]().
|
|
||||||
* `username`: The username for the bot account.
|
|
||||||
* `password`: The password for the bot account.
|
|
||||||
|
|
||||||
### pointsbot.ini
|
### pointsbot.ini
|
||||||
|
|
||||||
For now, these settings are pretty straightforward.
|
For now, these settings are pretty straightforward.
|
||||||
@@ -218,31 +218,48 @@ To ensure that a point is awarded to the correct user:
|
|||||||
|
|
||||||
## Questions
|
## Questions
|
||||||
|
|
||||||
* Should it really display a progress bar without a bounds, since the user could
|
1. Should it really display a progress bar without a bounds, since the user could
|
||||||
get a large amount of points? Or should it end at 40 or whatever the max
|
get a large amount of points? Or should it end at 40 or whatever the max
|
||||||
level is?
|
level is?
|
||||||
* Should the bot reply directly to the solution comment, or the OP's "!Solved"
|
1. When replying to a solution, should the bot...
|
||||||
comment and just tag the point earner?
|
1. Reply directly to the comment containing the solution (current behavior),
|
||||||
* Should the bot check whether comments containing "!solved" have been edited to
|
or
|
||||||
|
1. Reply to the comment marking the submission as "!solved" and tag the
|
||||||
|
solver?
|
||||||
|
1. Should the bot check whether comments containing "!solved" have been edited to
|
||||||
remove it?
|
remove it?
|
||||||
- If so, it could do that daily or something.
|
- If so, it could do that daily or something.
|
||||||
- This will be especially important if a "recovery mode" is implemented that
|
- This will be especially important if a "recovery mode" is implemented that
|
||||||
crawls through the whole subreddit to rebuild the database, since the
|
crawls through the whole subreddit to rebuild the database, since the
|
||||||
bot would only be able to see comments that haven't been removed, or
|
bot would only be able to see comments that haven't been removed, or
|
||||||
the newest version of edited comments.
|
the newest version of edited comments.
|
||||||
* When a "!solved" comment is found, should the bot award the point to the
|
1. Should the bot be prepared to handle complex comment threads (e.g. multiple
|
||||||
author of the parent comment or the root comment? In other words, should
|
replies to the comment before it is marked as solved)? In other words, when
|
||||||
only top-level comments be considered for points?
|
the bot finds a comment containing the "!solved" string, should it...
|
||||||
* Should the bot assume that the parent comment belongs to the user who solved
|
1. Assume that the author of the top-level comment is earning the point?
|
||||||
the issue, or should it find the first ancestor comment not made by the OP
|
1. Assume that the author of the parent comment of the "!solved" comment
|
||||||
(in case the OP responds "!solved" to one of their own comments on the
|
is earning the point? (current behavior)
|
||||||
solution comment)?
|
- Currently, the bot will either award the point to the author of the
|
||||||
* Should the bot still keep track of points for mods, even though it doesn't
|
parent comment to the "!solved" comment, unless the author is the
|
||||||
update their flair?
|
submission's OP, in which case is simply ignores the "!solved"
|
||||||
* Should the reply comment always tag them, even if it's not their first point?
|
comment altogether.
|
||||||
* When a user levels up, should the reply comment also mention that they have
|
- If we go with this behavior, I will probably change it to start at the
|
||||||
|
parent of the "!solved" comment and work its way up until it finds a
|
||||||
|
comment author who is not the OP, and then award them the point.
|
||||||
|
- A workaround for this is to ask users to provide a username following
|
||||||
|
the "!solved" word, starting with "r/" of course to make it easy to
|
||||||
|
identify. Then, in situations where the bot is unable to determine
|
||||||
|
who earned the point and the OP didn't provide a username after
|
||||||
|
"!solved", the bot could even reply to the OP's "!solved" comment
|
||||||
|
and request the username of the solver.
|
||||||
|
1. Should the bot still keep track of points for mods, even though it doesn't
|
||||||
|
update their flair? (I'd assume so, but it doesn't hurt to ask).
|
||||||
|
1. Should the bot's reply comment always tag the user earning the point, even if
|
||||||
|
it's responding directly to their comment? (Currently, it only tags the user
|
||||||
|
when they earn their first point.)
|
||||||
|
1. When a user levels up, should the reply comment also mention that they have
|
||||||
been awarded a new flair?
|
been awarded a new flair?
|
||||||
* Should the comment contain a notice that the post was made by a bot, similar
|
1. Should the comment contain a notice that the post was made by a bot, similar
|
||||||
to the notice on posts by automod?
|
to the notice on posts by automod?
|
||||||
|
|
||||||
## Terms of Use for a bot for Reddit
|
## Terms of Use for a bot for Reddit
|
||||||
|
|||||||
Reference in New Issue
Block a user