Compare commits
No commits in common. "efa84c6bae6689f0cdc2a7623e9860a5ab9e53d1" and "5ff564326e17163855d4d8f440c3fe04a94b6834" have entirely different histories.
efa84c6bae
...
5ff564326e
@ -19,15 +19,13 @@
|
||||
from collections import OrderedDict
|
||||
|
||||
|
||||
def setup_profile(name, backend, tags, banned_tags, message, message_nsfw, force_nsfw=None):
|
||||
def setup_profile(name, backend, tags, message, message_nsfw):
|
||||
post_setting = {
|
||||
"name": name,
|
||||
"backend": backend,
|
||||
"tags": tags,
|
||||
"banned_tags": banned_tags,
|
||||
"message": (message,),
|
||||
"message_nsfw": (message_nsfw,),
|
||||
"force_nsfw": force_nsfw
|
||||
"message_nsfw": (message_nsfw,)
|
||||
}
|
||||
return post_setting
|
||||
|
||||
@ -61,6 +59,8 @@ settings_credentials = {
|
||||
}
|
||||
}
|
||||
|
||||
settings_banned = tuple()
|
||||
|
||||
# Basic settings to configure Yandere Bot's behavior
|
||||
settings_behavior = {
|
||||
"max_size": 15*1024*1024,
|
||||
@ -87,12 +87,14 @@ settings_time = {
|
||||
"long_date_week": "%m/%d/%Y %I:%M%p, %A"
|
||||
}
|
||||
|
||||
banned_tags = (
|
||||
"guro", "scat", "yaoi", "implied_yaoi", "bara", "male_focus", "futanari"
|
||||
)
|
||||
|
||||
# Apply post settings
|
||||
settings_post = (
|
||||
setup_profile("danbooru.random", "danbooru_backend", ("random",), banned_tags, "#random", "#random #lewd #nsfw", None),
|
||||
setup_profile("danbooru.yandere", "danbooru_backend", ("yandere",), banned_tags, "#yandere", "#yandere #lewd #nsfw", None),
|
||||
setup_profile("danbooru.random", "danbooru_backend", ("random",), "#random", "#random #lewd #nsfw"),
|
||||
setup_profile("danbooru.yandere", "danbooru_backend", ("yandere",), "#yandere", "#yandere #lewd #nsfw"),
|
||||
)
|
||||
|
||||
# Default post behavior:
|
||||
# If no profile can be matched in a master_list, it will default to settings_post_default
|
||||
# If settings_post_default is None, the bot will error out and output the offending line(s)
|
||||
# If you want the bot to start, set this to a valid settings_post, or create a default setting with setup_profile()
|
||||
settings_post_default = None
|
||||
|
@ -41,6 +41,7 @@ class YandereBot:
|
||||
settings_behavior = None
|
||||
settings_time = None
|
||||
settings_post = None
|
||||
settings_post_default = None
|
||||
settings_encrypt = None
|
||||
settings_credentials = None
|
||||
|
||||
@ -84,6 +85,7 @@ class YandereBot:
|
||||
"settings_behavior",
|
||||
"settings_time",
|
||||
"settings_post",
|
||||
"settings_post_default",
|
||||
"settings_encrypt",
|
||||
"settings_credentials",
|
||||
)
|
||||
|
Reference in New Issue
Block a user