Ajout de la monétisation V0.1
This commit is contained in:
parent
cd0fc4c488
commit
879355f792
29 changed files with 698 additions and 72 deletions
|
|
@ -4,6 +4,7 @@ import json
|
|||
import os
|
||||
import asyncio
|
||||
from datetime import datetime, timedelta
|
||||
from utils.premium import check_premium_tier
|
||||
|
||||
BLACKLIST_FILE = "data/blacklist.json"
|
||||
AGENTS_FILE = "data/agents.json"
|
||||
|
|
@ -57,6 +58,7 @@ class Blacklist(commands.Cog):
|
|||
return str(user_id) in agents["agents"]
|
||||
|
||||
@commands.slash_command(name="blacklist", description="Blacklist un utilisateur")
|
||||
@check_premium_tier()
|
||||
async def blacklist(self, interaction: disnake.ApplicationCommandInteraction, user: disnake.User, reason: str = "Aucune raison fournie"):
|
||||
if not self.is_agent(interaction.user.id):
|
||||
return await interaction.response.send_message("⛔ Tu n’as pas la permission.", ephemeral=True)
|
||||
|
|
@ -122,6 +124,7 @@ class Blacklist(commands.Cog):
|
|||
)
|
||||
|
||||
@commands.slash_command(name="unblacklist", description="Retirer un utilisateur de la blacklist")
|
||||
@check_premium_tier()
|
||||
async def unblacklist(self, interaction: disnake.ApplicationCommandInteraction, user: disnake.User):
|
||||
if not self.is_agent(interaction.user.id):
|
||||
return await interaction.response.send_message("⛔ Tu n’as pas la permission.", ephemeral=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue