Archived
generated from imcompiling/discord-bot-template
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
build_develop / build (push) Successful in 22s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user