Add function to open raid buttons. Load the view in app so that views function after bot restart.
build_develop / build (push) Successful in 22s

This commit is contained in:
2025-03-19 19:16:17 -04:00
parent 10e561b0e3
commit 8d65d478cd
4 changed files with 115 additions and 10 deletions
+3
View File
@@ -7,6 +7,8 @@ import pathlib
import nextcord
from nextcord.ext import commands
from off_cooldown_bot.open_raid import OpenRaid
from .logger import ocd_logger
from .settings import settings
@@ -40,6 +42,7 @@ def run() -> None:
if bot.user is None:
ocd_logger.critical("Discord connection failed.")
return
bot.add_view(OpenRaid())
ocd_logger.info("%s has connected to Discord!", bot.user.name)
# Run Discord bot