Add missing data statements. (#251)

This commit is contained in:
PredaaA
2021-10-19 01:56:05 +02:00
committed by GitHub
parent d34732def7
commit 43902aefc9
18 changed files with 47 additions and 5 deletions

View File

@@ -1,5 +1,7 @@
from .discordexperiments import DiscordExperiments
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
def setup(bot):
bot.add_cog(DiscordExperiments(bot))

View File

@@ -9,6 +9,10 @@ class DiscordExperiments(commands.Cog):
def __init__(self, bot):
self.bot = bot
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
async def _create_invite(self, ctx, app_id: int, max_age: int, app_name: str):
voice = ctx.author.voice
if not voice:

View File

@@ -3,5 +3,6 @@
"install_msg": "⚠ **THIS COG IS NOT FOR GENERAL USE** ⚠\nThis cog creates voice invites for experimental applications that Discord is still working on.\nAnything can break at any time.\nI am not responsible for anything that happens to your Discord account or your bot while using this cog.\nUsers are required to use OAuth authentication to access some of these applications on joining the voice channels and interacting with it. This interaction/authentication is between Discord and the service(s) providing the experiments.\nI do not recommend installing this cog on a public bot.\nDO NOT LOAD THIS COG IF YOU DO NOT AGREE TO THE RISKS. NOT ALL RISKS HAVE BEEN EXPLAINED HERE.",
"short": "Create voice invites for experimental Discord applications.",
"description": "Create voice invites for experimental Discord applications.",
"tags": ["discord"]
"tags": ["discord"],
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
}

View File

@@ -1,5 +1,7 @@
from .invites import Invites
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
def setup(bot):
bot.add_cog(Invites(bot))

View File

@@ -5,5 +5,6 @@
"short": "Invite count display and leaderboard.",
"tags": ["invites"],
"permissions": ["administrator", "embed_links"],
"type": "COG"
"type": "COG",
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
}

View File

@@ -28,6 +28,10 @@ class Invites(commands.Cog):
self.config.register_guild(**default_guild)
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
@commands.guild_only()
@commands.group()
async def invites(self, ctx: commands.Context):

View File

@@ -1,4 +1,6 @@
from .latex import Latex
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
def setup(bot):
bot.add_cog(Latex(bot))

View File

@@ -2,6 +2,8 @@ from redbot.core import commands
from .rss import RSS
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
async def setup(bot: commands.Bot):
n = RSS(bot)

View File

@@ -5,5 +5,6 @@
"description": "Read RSS feeds.",
"tags": ["rss"],
"permissions": ["embed_links"],
"requirements": ["bs4", "feedparser>=6.0.0", "webcolors==1.3"]
"requirements": ["bs4", "feedparser>=6.0.0", "webcolors==1.3"],
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
}

View File

@@ -49,6 +49,10 @@ class RSS(commands.Cog):
self._headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0"}
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
def initialize(self):
self._read_feeds_loop = self.bot.loop.create_task(self.read_feeds())

View File

@@ -1,5 +1,7 @@
from .trackdecoder import TrackDecoder
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
def setup(bot):
bot.add_cog(TrackDecoder(bot))

View File

@@ -14,6 +14,10 @@ class TrackDecoder(commands.Cog):
def __init__(self, bot):
self.bot = bot
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
@checks.is_owner()
@commands.command()
@commands.guild_only()

View File

@@ -1,5 +1,6 @@
from .ttt import TTT
__red_end_user_data_statement__ = "This cog does store temporarily (in memory) data about users, which is cleared after the game is done."
def setup(bot):
bot.add_cog(TTT(bot))

View File

@@ -5,5 +5,6 @@
"short": "Tic Tac Toe",
"tags": ["game", "games", "tic tac toe", "ttt"],
"permissions": ["add_reactions"],
"type": "COG"
"type": "COG",
"end_user_data_statement": "This cog does store temporarily (in memory) data about users, which is cleared after the game is done."
}

View File

@@ -19,6 +19,10 @@ class TTT(commands.Cog):
self.bot = bot
self.ttt_games = {}
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
@commands.guild_only()
@commands.bot_has_permissions(add_reactions=True)
@commands.max_concurrency(1, commands.BucketType.user)

View File

@@ -1,5 +1,7 @@
from .urlfetch import UrlFetch
__red_end_user_data_statement__ = "This cog does not persistently store data or metadata about users."
def setup(bot):
bot.add_cog(UrlFetch(bot))

View File

@@ -3,5 +3,6 @@
"install_msg": "Thanks for installing.",
"short": "Fetch text from a URL.",
"description": "Fetch text from a URL.",
"tags": ["api"]
"tags": ["api"],
"end_user_data_statement": "This cog does not persistently store data or metadata about users."
}

View File

@@ -21,6 +21,10 @@ class UrlFetch(commands.Cog):
self._headers = {'User-Agent': 'Python/3.8'}
async def red_delete_data_for_user(self, **kwargs):
"""Nothing to delete"""
return
@commands.command()
async def urlfetch(self, ctx, url: str):
"""