i kinda forgot to commit. Anyways, i made the config into toml, edited readme, and... refactored code...
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
[reddit]
|
||||
# Which subreddits the bot will scan when executing "re"-category commands.
|
||||
# Is automatically disabled when `disabled_categories` includes "re".
|
||||
# Separate multiple subreddits with a "+", e.g "memes+askreddit".
|
||||
subreddits = "bytedicetesting"
|
||||
|
||||
# How many posts the bot scans when running `/re_updatediscord`.
|
||||
fetch_limit = 100
|
||||
|
||||
[commands]
|
||||
# TODO: readme
|
||||
# Disabled selected command categories. All commands and their categories can be viewed in the README.
|
||||
# "admin" and "owner" categories are always enabled.
|
||||
# [REQUIRES RESTART]
|
||||
disabled_categories = [
|
||||
# "fun",
|
||||
# "help"
|
||||
# "re"
|
||||
]
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"servers": {
|
||||
"SERVER ID": {
|
||||
"re_posts_channel": 0,
|
||||
"re_disabled": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"posts": {
|
||||
"EXAMPLE URL": {
|
||||
"removed": {
|
||||
"removed": false,
|
||||
"by": null,
|
||||
"reason": null
|
||||
},
|
||||
"post_data": {
|
||||
"title": "I JUST BOUGHT THE CONTINENT OF NORTH AMERICA FOR A DOLLAR!",
|
||||
"upvotes": 69420,
|
||||
"date_unix": 1738614657,
|
||||
"media_type": null,
|
||||
"media_urls": []
|
||||
},
|
||||
"votes": {
|
||||
"voters_re": ["bytedice"],
|
||||
"voters_dc": [0],
|
||||
"mod_voters": [0]
|
||||
},
|
||||
"added": {
|
||||
"by_human": false,
|
||||
"by_bot": true
|
||||
},
|
||||
"approved": {
|
||||
"by_human": true,
|
||||
"by_ris": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user