mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[scripts/copy-crosscode-emoji-url] add an option for allowing nsfw emotes
This commit is contained in:
parent
c12afbc6ff
commit
be46fba566
1 changed files with 2 additions and 1 deletions
|
@ -51,7 +51,8 @@ def emote_downloader_and_iterator() -> Generator[str, None, None]:
|
||||||
|
|
||||||
assert emote_registry_data["version"] == 1
|
assert emote_registry_data["version"] == 1
|
||||||
|
|
||||||
emotes = [emote for emote in emote_registry_data["list"] if emote["safe"]]
|
allow_nsfw = config.getboolean("default", "allow_nsfw", fallback=False)
|
||||||
|
emotes = [emote for emote in emote_registry_data["list"] if emote["safe"] or allow_nsfw]
|
||||||
|
|
||||||
for emote in emotes:
|
for emote in emotes:
|
||||||
yield "{emote[ref]} [{emote[guild_name]}]".format(emote=emote)
|
yield "{emote[ref]} [{emote[guild_name]}]".format(emote=emote)
|
||||||
|
|
Loading…
Reference in a new issue