Corrected version info in info command

This commit is contained in:
hencaric
2026-03-14 23:22:39 -04:00
parent 6f7e295361
commit 4ec1568af6
2 changed files with 7 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
[tool.poetry] [tool.poetry]
name = "scnewsbot" name = "scnewsbot"
version = "3.0.1" version = "3.0.2"
description = "A bot for the r/starcitizen Discord server." description = "A news bot for the r/starcitizen Discord server."
authors = ["hencaric"] authors = ["hencaric"]
license = "MIT" license = "MIT"
readme = "README.md" readme = "README.md"

View File

@@ -5,7 +5,7 @@ import discord
import datetime import datetime
from utils import Config from utils import Config
VERSION = "1.0.4" VERSION = "3.0.2"
INTENTS = discord.Intents.default() INTENTS = discord.Intents.default()
INTENTS.message_content = True INTENTS.message_content = True
INTENTS.members = True INTENTS.members = True
@@ -19,7 +19,7 @@ class Bot(commands.Bot):
allowed_mentions=discord.AllowedMentions(everyone=False), allowed_mentions=discord.AllowedMentions(everyone=False),
case_insensitive=True, case_insensitive=True,
activity=discord.Activity( activity=discord.Activity(
type=discord.ActivityType.watching, name="the devs..." type=discord.ActivityType.watching, name="Writing some news!"
), ),
) )
self.config = config self.config = config
@@ -66,25 +66,17 @@ class CoreCog(commands.Cog, name="Core"):
description="The SC News Bot is a bot created for the r/starcitizen Discord server to help with writing news posts.", description="The SC News Bot is a bot created for the r/starcitizen Discord server to help with writing news posts.",
) )
embed.add_field( embed.add_field(
name="Version", value=f"v{self.bot.version}+{self._get_version()}" name="Version", value=f"v{self.bot.version}"
) )
embed.add_field( embed.add_field(
name="Library", value=f"discord.py v{discord.__version__}", inline=False name="Library", value=f"discord.py v{discord.__version__}", inline=False
) )
embed.add_field( embed.add_field(
name="Authors", name="Authors",
value=f"<@288522211164160010> and <@998070081709932654>", value=f"<@288522211164160010>",
) )
embed.add_field( embed.add_field(
name="Production Code", name="Production Code",
value=f"[Link](https://github.com/hencaric/SCNewsBot)", value=f"[Link](https://github.com/hencaric/SCNewsBot)",
) )
view = discord.ui.View() await ctx.reply(embed=embed, mention_author=False)
view.add_item(
discord.ui.Button(
label="Source Code for Public Use",
url="https://github.com/mudkipdev/scnewsbot",
style=discord.ButtonStyle.link,
)
)
await ctx.reply(embed=embed, view=view, mention_author=False)