Make app user installable (#2)

This commit is contained in:
2025-12-08 23:31:44 +01:00
committed by GitHub
parent b653aa24e9
commit 8320e3ff43

View File

@@ -4,6 +4,8 @@
import os
import sys
import discord
sys.path.append(os.path.dirname(__file__))
import asyncio
@@ -23,7 +25,16 @@ from renderer.manager import RendererManager
logging.basicConfig(level=logging.DEBUG)
intents = Intents.default()
app = App(intents=intents, auto_sync_commands=CONFIG.auto_sync_commands)
app = App(
intents=intents,
auto_sync_commands=CONFIG.auto_sync_commands,
default_command_contexts={
discord.InteractionContextType.guild,
discord.InteractionContextType.bot_dm,
discord.InteractionContextType.private_channel,
},
default_command_integration_types={discord.IntegrationType.guild_install, discord.IntegrationType.user_install},
)
FLAGWAVER_PATH = Path(__file__).parent / "flagwaver" / "dist"