fix(updatechecker): trying to figure out why I'm getting an error

This commit is contained in:
Seaswimmer 2024-01-08 06:06:30 +00:00
parent 50180c6301
commit 9a7b627854
Signed by untrusted user: cswimr
GPG key ID: D74DDDDF420E13DF

View file

@ -80,6 +80,7 @@ class UpdateChecker(commands.Cog):
data = await self.conf.all()
repos = data["repos"]
channel = data["gochannel"]
auto = data["auto"]
use_embed = data["embed"]
whitelist = data["whitelist"]
blacklist = data["blacklist"]
@ -308,7 +309,7 @@ class UpdateChecker(commands.Cog):
channel = await self.conf.gochannel()
embed = await self.conf.embed()
if embed:
e = discord.Embed(title="Update Checker settings", color=0x00FF00)
e = discord.Embed(title="Update Checker Settings", color=0x00FF00)
e.add_field(name="Automatic Cog Updates", value=str(auto))
if channel == 0:
channel = "Direct Messages"
@ -443,7 +444,7 @@ class UpdateChecker(commands.Cog):
except asyncio.exceptions.InvalidStateError:
message += " No error has been encountered."
else:
message += f" An error has been encountered. Please run `{ctx.prefix}cogupdater task error` and report it to SeaswimmerTheFsh (.seasw) on the help server."
message += f" An error has been encountered. Please run `{ctx.prefix}cogupdater task error` and report it to SeaswimmerTheFsh (seasw.) on the help server."
await ctx.send(message)
@_group_update_task.command()