Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit 649bd45

Browse files
authored
Merge pull request #52 from parafoxia/develop
Merge to release 1.1.1
2 parents 88a59ff + 373c454 commit 649bd45

File tree

6 files changed

+8
-7
lines changed

6 files changed

+8
-7
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,3 +262,4 @@ secrets/
262262
*.db3-wal
263263
TODO
264264
DESCRIPTION.md
265+
copy-db.txt

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "Solaris-Bot"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "A Discord bot designed to make your server a safer and better place."
55

66
license = "GPLv3"

solaris/bot/cogs/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ async def get_command_mapping(self, ctx):
135135
name="help",
136136
help="Help with anything Solaris. Passing a command name or alias through will show help with that specific command, while passing no arguments will bring up a general command overview.",
137137
)
138-
async def help_command(self, ctx, cmd: t.Optional[t.Union[converters.Command, str]]):
138+
async def help_command(self, ctx, *, cmd: t.Optional[t.Union[converters.Command, str]]):
139139
prefix = await self.bot.prefix(ctx.guild)
140140

141141
if isinstance(cmd, str):

solaris/bot/cogs/meta.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ async def channelinfo_command(
517517
("Slowmode delay", f"{target.slowmode_delay:,} second(s)", True),
518518
("Created on", chron.long_date(target.created_at), True),
519519
("Existed for", chron.short_delta(dt.datetime.utcnow() - target.created_at), True),
520-
("Topic", target.topic or "This channel does not have a topic.", False),
520+
("Topic", target.topic or "-", False),
521521
),
522522
)
523523
)
@@ -600,7 +600,7 @@ async def roleinfo_command(self, ctx, *, target: t.Optional[t.Union[discord.Role
600600
("Mentionable?", target.mentionable, True),
601601
("Admin?", target.permissions.administrator, True),
602602
("Position", f"{string.ordinal(ngr - target.position)} / {ngr:,}", True),
603-
("Colour", f"#{str(target.colour)}", True),
603+
("Colour", f"{str(target.colour)}", True),
604604
("Members", f"{len(target.members):,}", True),
605605
("Created on", chron.long_date(target.created_at), True),
606606
("Existed for", chron.short_delta(dt.datetime.utcnow() - target.created_at), True),
@@ -642,7 +642,7 @@ async def messageinfo_command(self, ctx, target: t.Union[discord.Message, str]):
642642
("Last edited on", chron.long_date(target.created_at), True),
643643
(
644644
"Content",
645-
target.content if len(target.content) <= 1024 else f"{target.content[:1021]}...",
645+
(target.content if len(target.content) <= 1024 else f"{target.content[:1021]}...") or "-",
646646
False,
647647
),
648648
),

solaris/utils/converters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ async def convert(self, ctx, arg):
5353
else:
5454
# Check for subcommands.
5555
for cmd in ctx.bot.walk_commands():
56-
if cmd.name == arg:
56+
if arg == f"{cmd.parent.name} {cmd.name}":
5757
return cmd
5858
raise commands.BadArgument
5959

solaris/utils/string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def get_value(self, key, args, kwargs):
3434

3535

3636
def safe_format(text, *args, **kwargs):
37-
formatter = Formatter()
37+
formatter = MessageFormatter()
3838
return formatter.format(text, *args, **kwargs)
3939

4040

0 commit comments

Comments
 (0)