2 Commits

2 changed files with 64 additions and 0 deletions

38
cogs/cog_consent.py Normal file
View File

@@ -0,0 +1,38 @@
import logging
from logging import Logger
from discord import SlashCommandGroup
from discord.ext import commands
from classes.pycord_bot import PycordBot
logger: Logger = logging.getLogger(__name__)
class CogConsent(commands.Cog):
def __init__(self, client: PycordBot):
self.client: PycordBot = client
command_group: SlashCommandGroup = SlashCommandGroup("consent", "Consent management")
# /consent terms <scope>
# Will provide information about terms
# /consent give <scope>
# Will provide information about terms and a button to confirm
# /consent withdraw <scope>
# Will directly withdraw consent if confirmation is provided
# /consent give_all [<confirm>]
# Will inform about necessity to review all scopes and a button to confirm
# /consent withdraw_all [<confirm>]
# Will directly withdraw all consents if confirmation is provided
# /consent review
# Will show all consents provided by the user, including scopes and expiration dates
def setup(client: PycordBot) -> None:
client.add_cog(CogConsent(client))

26
cogs/cog_data.py Normal file
View File

@@ -0,0 +1,26 @@
import logging
from logging import Logger
from discord import SlashCommandGroup
from discord.ext import commands
from classes.pycord_bot import PycordBot
logger: Logger = logging.getLogger(__name__)
class CogData(commands.Cog):
def __init__(self, client: PycordBot):
self.client: PycordBot = client
command_group: SlashCommandGroup = SlashCommandGroup("data", "Data management")
# /data checkout
# Export all user data in a ZIP archive
# /data purge [<confirm>]
# Soft-delete all user data
def setup(client: PycordBot) -> None:
client.add_cog(CogData(client))