mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-02 18:23:12 +00:00
Remove some references
This commit is contained in:
parent
5899e3cd09
commit
fc4eb1ab7a
10 changed files with 22 additions and 24 deletions
|
@ -35,7 +35,7 @@ async def beta_command(ctx):
|
|||
async def bot_owner(ctx):
|
||||
owner_id = os.getenv("OWNER_ID")
|
||||
if ctx.author.id != int(owner_id):
|
||||
embed = discord.Embed(description=f"Only Esther can do this command.",
|
||||
embed = discord.Embed(description=f"This command requires bot admin permissions.",
|
||||
color=discord.Color.red())
|
||||
await ctx.respond(embed=embed, ephemeral=True)
|
||||
return False
|
||||
|
|
|
@ -14,6 +14,6 @@ def get_latest_git_tag():
|
|||
|
||||
__title__ = "Racu"
|
||||
__version__ = get_latest_git_tag()
|
||||
__author__ = "Esther J. J."
|
||||
__author__ = "stupidbeaver"
|
||||
__author_email__ = "dokimakimaki@gmail.com"
|
||||
__license__ = "GNU GENERAL PUBLIC LICENSE v2"
|
||||
|
|
4
main.py
4
main.py
|
@ -20,7 +20,7 @@ client = discord.Bot(
|
|||
owner_id=os.getenv('OWNER_ID'),
|
||||
intents=discord.Intents.all(),
|
||||
activity=discord.Activity(
|
||||
name="Kaiju's Rave Cave",
|
||||
name="The Rave Cave",
|
||||
type=discord.ActivityType.listening,
|
||||
),
|
||||
status=discord.Status.online
|
||||
|
@ -82,7 +82,7 @@ async def on_member_join(member):
|
|||
|
||||
embed = discord.Embed(
|
||||
color=discord.Color.embed_background(),
|
||||
description=f"_ _\n**Welcome** to **Kaiju's Rave Cave** ↓↓↓\n"
|
||||
description=f"_ _\n**Welcome** to **The Rave Cave** ↓↓↓\n"
|
||||
f"[rules]({rules_channel.jump_url}) - "
|
||||
f"[introductions]({introductions_channel.jump_url})\n_ _"
|
||||
)
|
||||
|
|
|
@ -12,7 +12,7 @@ from discord.ext import commands, tasks
|
|||
from config import json_loader
|
||||
from services.Birthday import Birthday
|
||||
from main import strings
|
||||
from lib import time
|
||||
from lib import time, checks
|
||||
|
||||
logs = logging.getLogger('Racu.Core')
|
||||
|
||||
|
@ -30,12 +30,11 @@ class BirthdayCog(commands.Cog):
|
|||
self.client = client
|
||||
self.daily_birthday_check.start()
|
||||
|
||||
birthday = SlashCommandGroup("birthday", "various birthday commands.")
|
||||
birthday = SlashCommandGroup("birthday", "various birthday commands.", guild_only=True)
|
||||
|
||||
@birthday.command(
|
||||
name="set",
|
||||
description="Set your birthday.",
|
||||
guild_only=True
|
||||
description="Set your birthday."
|
||||
)
|
||||
@commands.cooldown(1, 10, commands.BucketType.user)
|
||||
async def set_birthday(self, ctx, *,
|
||||
|
@ -58,8 +57,7 @@ class BirthdayCog(commands.Cog):
|
|||
|
||||
@birthday.command(
|
||||
name="upcoming",
|
||||
description="See upcoming birthdays!",
|
||||
guild_only=True
|
||||
description="See upcoming birthdays!"
|
||||
)
|
||||
@commands.cooldown(1, 10, commands.BucketType.user)
|
||||
async def upcoming_birthdays(self, ctx):
|
||||
|
@ -96,8 +94,7 @@ class BirthdayCog(commands.Cog):
|
|||
|
||||
@birthday.command(
|
||||
name="override",
|
||||
description="Override a birthday - requires Manage Server.",
|
||||
guild_only=True
|
||||
description="Override a birthday - requires Manage Server."
|
||||
)
|
||||
@default_permissions(manage_guild=True)
|
||||
async def override_birthday(self, ctx, *,
|
||||
|
@ -129,7 +126,7 @@ class BirthdayCog(commands.Cog):
|
|||
birthday_ids = Birthday.today()
|
||||
|
||||
if birthday_ids:
|
||||
guild_id = 719227135151046699 # Kaiju's Rave Cave
|
||||
guild_id = 719227135151046699 # RC
|
||||
channel_id = 741021558172287099 # Birthdays channel
|
||||
|
||||
guild = await self.client.fetch_guild(guild_id)
|
||||
|
|
|
@ -64,7 +64,7 @@ class AwardCog(commands.Cog):
|
|||
target_currency.push()
|
||||
|
||||
except Exception as e:
|
||||
await ctx.channel.respond("Something funky happened.. Tell Tess.", ephemeral=True)
|
||||
await ctx.channel.respond("Something funky happened.. Sorry about that.", ephemeral=True)
|
||||
print(e)
|
||||
return
|
||||
|
||||
|
|
|
@ -22,6 +22,9 @@ class BasicCog(commands.Cog):
|
|||
)
|
||||
@commands.dm_only()
|
||||
async def intro(self, ctx):
|
||||
|
||||
# rewrite this whole command
|
||||
|
||||
guild_id = 719227135151046699
|
||||
channel_id = 973619250507972618
|
||||
muted_role_id = 754895743151505489
|
||||
|
|
|
@ -74,7 +74,7 @@ class ItemCog(commands.Cog):
|
|||
|
||||
return await ctx.respond(embed=embed)
|
||||
|
||||
items = discord.SlashCommandGroup(name="items")
|
||||
items = discord.SlashCommandGroup(name="items", guild_only=True)
|
||||
|
||||
@items.command(
|
||||
name="gift",
|
||||
|
|
|
@ -13,12 +13,12 @@ class SayCog(commands.Cog):
|
|||
self.client = client
|
||||
|
||||
@commands.slash_command(
|
||||
name="tess",
|
||||
description="Bot admin only",
|
||||
name="say",
|
||||
description="Bot admin only.",
|
||||
guild_only=True
|
||||
)
|
||||
@commands.check(checks.bot_owner)
|
||||
async def tess_command(self, ctx, *, txt: discord.Option(str)):
|
||||
async def say(self, ctx, *, txt: discord.Option(str)):
|
||||
await ctx.respond(content="✅", ephemeral=True)
|
||||
await ctx.send(content=txt)
|
||||
|
||||
|
|
|
@ -197,7 +197,7 @@ class SellCog(commands.Cog):
|
|||
await message.edit(embed=embed, view=None)
|
||||
|
||||
except Exception as e:
|
||||
await ctx.respond("Something went wrong, let Tess know about this.")
|
||||
await ctx.respond("Something went wrong.")
|
||||
logs.error(f"[CommandHandler] /sell post-confirmation error: {e}")
|
||||
return
|
||||
|
||||
|
|
|
@ -23,12 +23,11 @@ class OwnerOnlyCog(commands.Cog):
|
|||
def __init__(self, client):
|
||||
self.client = client
|
||||
|
||||
sql = discord.SlashCommandGroup(name="sql", description="Perform SQL commands (DANGEROUS)")
|
||||
sql = discord.SlashCommandGroup(name="sql", description="Perform SQL commands (DANGEROUS)", guild_only=True)
|
||||
|
||||
@sql.command(
|
||||
name="select",
|
||||
description="Perform a SELECT query in the database.",
|
||||
guild_only=True
|
||||
description="Perform a SELECT query in the database."
|
||||
)
|
||||
@commands.check(checks.bot_owner)
|
||||
async def select(self, ctx, *, query: discord.Option(str)):
|
||||
|
@ -44,8 +43,7 @@ class OwnerOnlyCog(commands.Cog):
|
|||
|
||||
@sql.command(
|
||||
name="inject",
|
||||
description="Change a value in the database. (DANGEROUS)",
|
||||
guild_only=True
|
||||
description="Change a value in the database. (DANGEROUS)"
|
||||
)
|
||||
@commands.check(checks.bot_owner)
|
||||
async def inject(self, ctx, *, query: discord.Option(str)):
|
||||
|
|
Loading…
Reference in a new issue