Compare commits
2 Commits
54bfef981d
...
9e10cf4fa4
Author | SHA1 | Date | |
---|---|---|---|
9e10cf4fa4 | |||
7b15480c30 |
38
cogs/cog_consent.py
Normal file
38
cogs/cog_consent.py
Normal 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
26
cogs/cog_data.py
Normal 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))
|
Reference in New Issue
Block a user