From 43902aefc91322a4fd10ca4a4c3304d27962d9ef Mon Sep 17 00:00:00 2001 From: PredaaA <46051820+PredaaA@users.noreply.github.com> Date: Tue, 19 Oct 2021 01:56:05 +0200 Subject: [PATCH] Add missing data statements. (#251) --- discordexperiments/__init__.py | 2 ++ discordexperiments/discordexperiments.py | 4 ++++ discordexperiments/info.json | 3 ++- invites/__init__.py | 2 ++ invites/info.json | 3 ++- invites/invites.py | 4 ++++ latex/__init__.py | 2 ++ rss/__init__.py | 2 ++ rss/info.json | 3 ++- rss/rss.py | 4 ++++ trackdecoder/__init__.py | 2 ++ trackdecoder/trackdecoder.py | 4 ++++ ttt/__init__.py | 1 + ttt/info.json | 3 ++- ttt/ttt.py | 4 ++++ urlfetch/__init__.py | 2 ++ urlfetch/info.json | 3 ++- urlfetch/urlfetch.py | 4 ++++ 18 files changed, 47 insertions(+), 5 deletions(-) diff --git a/discordexperiments/__init__.py b/discordexperiments/__init__.py index 2e75540..c9caf76 100644 --- a/discordexperiments/__init__.py +++ b/discordexperiments/__init__.py @@ -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)) diff --git a/discordexperiments/discordexperiments.py b/discordexperiments/discordexperiments.py index 8050767..5f48668 100644 --- a/discordexperiments/discordexperiments.py +++ b/discordexperiments/discordexperiments.py @@ -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: diff --git a/discordexperiments/info.json b/discordexperiments/info.json index 3dedb08..aa8a067 100644 --- a/discordexperiments/info.json +++ b/discordexperiments/info.json @@ -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." } diff --git a/invites/__init__.py b/invites/__init__.py index cf0bf63..706aa8f 100644 --- a/invites/__init__.py +++ b/invites/__init__.py @@ -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)) diff --git a/invites/info.json b/invites/info.json index cd6803d..593806f 100644 --- a/invites/info.json +++ b/invites/info.json @@ -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." } diff --git a/invites/invites.py b/invites/invites.py index 6ce8f6a..d0a2955 100644 --- a/invites/invites.py +++ b/invites/invites.py @@ -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): diff --git a/latex/__init__.py b/latex/__init__.py index 24fa5c9..9e1bbbd 100644 --- a/latex/__init__.py +++ b/latex/__init__.py @@ -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)) diff --git a/rss/__init__.py b/rss/__init__.py index baebc89..75352bc 100644 --- a/rss/__init__.py +++ b/rss/__init__.py @@ -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) diff --git a/rss/info.json b/rss/info.json index 13a73b5..b12f77d 100644 --- a/rss/info.json +++ b/rss/info.json @@ -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." } diff --git a/rss/rss.py b/rss/rss.py index 5db0f6a..5058683 100644 --- a/rss/rss.py +++ b/rss/rss.py @@ -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()) diff --git a/trackdecoder/__init__.py b/trackdecoder/__init__.py index 1755712..7bc98fc 100644 --- a/trackdecoder/__init__.py +++ b/trackdecoder/__init__.py @@ -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)) diff --git a/trackdecoder/trackdecoder.py b/trackdecoder/trackdecoder.py index 0d043b5..e94e563 100644 --- a/trackdecoder/trackdecoder.py +++ b/trackdecoder/trackdecoder.py @@ -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() diff --git a/ttt/__init__.py b/ttt/__init__.py index d6c1852..fe344d5 100644 --- a/ttt/__init__.py +++ b/ttt/__init__.py @@ -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)) diff --git a/ttt/info.json b/ttt/info.json index 229317d..c92ade6 100644 --- a/ttt/info.json +++ b/ttt/info.json @@ -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." } diff --git a/ttt/ttt.py b/ttt/ttt.py index f5dc8e4..fd2abaf 100644 --- a/ttt/ttt.py +++ b/ttt/ttt.py @@ -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) diff --git a/urlfetch/__init__.py b/urlfetch/__init__.py index dc34bfe..2dee3c6 100644 --- a/urlfetch/__init__.py +++ b/urlfetch/__init__.py @@ -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)) diff --git a/urlfetch/info.json b/urlfetch/info.json index d6fc843..ae312fe 100644 --- a/urlfetch/info.json +++ b/urlfetch/info.json @@ -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." } diff --git a/urlfetch/urlfetch.py b/urlfetch/urlfetch.py index 5634c1d..c2f68f9 100644 --- a/urlfetch/urlfetch.py +++ b/urlfetch/urlfetch.py @@ -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): """