Archived
generated from imcompiling/discord-bot-template
Add utils to define guild ids that will use this bot.
This commit is contained in:
@@ -10,12 +10,13 @@ from sqlmodel import Session, col, select
|
|||||||
from off_cooldown_bot.app import birthday_list
|
from off_cooldown_bot.app import birthday_list
|
||||||
from off_cooldown_bot.database.db import engine
|
from off_cooldown_bot.database.db import engine
|
||||||
from off_cooldown_bot.database.models import UserBirthday
|
from off_cooldown_bot.database.models import UserBirthday
|
||||||
|
from off_cooldown_bot.utils import GUILDS
|
||||||
|
|
||||||
|
|
||||||
class BirthdayCog(commands.Cog, name="Birthday Commands"):
|
class BirthdayCog(commands.Cog, name="Birthday Commands"):
|
||||||
"""Class holds birthday commands."""
|
"""Class holds birthday commands."""
|
||||||
|
|
||||||
@nextcord.slash_command(guild_ids=[1000247361639030804, 822199658306076672])
|
@nextcord.slash_command(guild_ids=GUILDS)
|
||||||
async def birthday(self, interaction: nextcord.Interaction) -> None:
|
async def birthday(self, interaction: nextcord.Interaction) -> None:
|
||||||
"""Parent slash command for birthday. Never called."""
|
"""Parent slash command for birthday. Never called."""
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
"""File contains functions and variables used widely."""
|
||||||
|
|
||||||
|
GUILDS = [1000247361639030804, 822199658306076672]
|
||||||
Reference in New Issue
Block a user