Add version info
This commit is contained in:
+17
-3
@@ -31,6 +31,7 @@ RATE_LIMIT_WINDOW = timedelta(hours=1)
|
|||||||
user_message_log = defaultdict(list)
|
user_message_log = defaultdict(list)
|
||||||
|
|
||||||
FABI_ID = 392388537984745498
|
FABI_ID = 392388537984745498
|
||||||
|
BOT_VERSION = "5.2.8"
|
||||||
|
|
||||||
|
|
||||||
def is_fabi(user: discord.User | discord.Member) -> bool:
|
def is_fabi(user: discord.User | discord.Member) -> bool:
|
||||||
@@ -555,6 +556,14 @@ async def on_message(message: discord.Message):
|
|||||||
|
|
||||||
@tree.command(name="tars", description="Activate T.A.R.S. and show available commands")
|
@tree.command(name="tars", description="Activate T.A.R.S. and show available commands")
|
||||||
async def slash_tars(interaction: discord.Interaction):
|
async def slash_tars(interaction: discord.Interaction):
|
||||||
|
version = BOT_VERSION # pull current version
|
||||||
|
|
||||||
|
intro = tars_text(
|
||||||
|
f"T.A.R.S. online. Systems nominal.\n**Current Version:** `{version}`\n"
|
||||||
|
"You can address me directly or use the following commands.",
|
||||||
|
"info"
|
||||||
|
)
|
||||||
|
|
||||||
mod_embed = tars_embed(
|
mod_embed = tars_embed(
|
||||||
"Moderation Systems Online",
|
"Moderation Systems Online",
|
||||||
"/tarsreport — report a user\n"
|
"/tarsreport — report a user\n"
|
||||||
@@ -564,6 +573,7 @@ async def slash_tars(interaction: discord.Interaction):
|
|||||||
"/addbannedword — add banned word to auto-delete list\n"
|
"/addbannedword — add banned word to auto-delete list\n"
|
||||||
"/listbannedwords — view banned words list\n"
|
"/listbannedwords — view banned words list\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
util_embed = tars_embed(
|
util_embed = tars_embed(
|
||||||
"Utility Subroutines",
|
"Utility Subroutines",
|
||||||
"/userinfo — get user info\n"
|
"/userinfo — get user info\n"
|
||||||
@@ -574,6 +584,7 @@ async def slash_tars(interaction: discord.Interaction):
|
|||||||
"/getquote — retrieve a saved quote\n"
|
"/getquote — retrieve a saved quote\n"
|
||||||
"/setmotd — configure the message of the day\n"
|
"/setmotd — configure the message of the day\n"
|
||||||
)
|
)
|
||||||
|
|
||||||
fun_embed = tars_embed(
|
fun_embed = tars_embed(
|
||||||
"Recreational Protocols",
|
"Recreational Protocols",
|
||||||
"/8ball — Magic 8-ball\n"
|
"/8ball — Magic 8-ball\n"
|
||||||
@@ -581,9 +592,12 @@ async def slash_tars(interaction: discord.Interaction):
|
|||||||
"/quote — save message quotes\n"
|
"/quote — save message quotes\n"
|
||||||
"/ping — check T.A.R.S. responsiveness"
|
"/ping — check T.A.R.S. responsiveness"
|
||||||
)
|
)
|
||||||
intro = tars_text("T.A.R.S. online. Systems nominal. You can address me directly or use the following commands.",
|
|
||||||
"info")
|
await interaction.response.send_message(
|
||||||
await interaction.response.send_message(intro, embeds=[mod_embed, util_embed, fun_embed], ephemeral=False)
|
intro,
|
||||||
|
embeds=[mod_embed, util_embed, fun_embed],
|
||||||
|
ephemeral=False
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@tree.command(name="userinfo", description="Get info about a user")
|
@tree.command(name="userinfo", description="Get info about a user")
|
||||||
|
|||||||
Reference in New Issue
Block a user