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
|
|
@ -7,6 +7,7 @@ import os
|
|||
import logging
|
||||
import asyncio
|
||||
from PIL import Image, ImageDraw, ImageFont
|
||||
from utils.premium import check_premium_tier
|
||||
|
||||
kuby_logger = logging.getLogger("KubyBot")
|
||||
|
||||
|
|
@ -345,6 +346,7 @@ class Welcome(commands.Cog):
|
|||
return os.path.basename(banner_path)
|
||||
|
||||
@commands.slash_command(name="setwelcome", description="Définit le salon, les messages de bienvenue et le fond de la bannière")
|
||||
@check_premium_tier()
|
||||
@commands.has_permissions(administrator=True)
|
||||
async def set_welcome(self, interaction: disnake.ApplicationCommandInteraction, channel: disnake.TextChannel, message_dm: str, message_salon: str, server_name: str, banner_file: disnake.Attachment = None):
|
||||
# ✅ DÉFÉRER LA RÉPONSE (le traitement peut prendre > 3s avec les images)
|
||||
|
|
@ -385,6 +387,7 @@ class Welcome(commands.Cog):
|
|||
await interaction.followup.send(error_message, ephemeral=True)
|
||||
|
||||
@commands.slash_command(name="invitations", description="Affiche vos statistiques d'invitations")
|
||||
@check_premium_tier()
|
||||
async def invitations_stats(self, interaction: disnake.ApplicationCommandInteraction, user: disnake.Member = None):
|
||||
user = user or interaction.author
|
||||
await self._send_invitation_stats(interaction, user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue