Skip to content

Commit a158985

Browse files
committed
general fixes
1 parent 1bb52f6 commit a158985

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

app/cogs/commands/db_get_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async def get_user(self, ctx: discord.ApplicationContext, user: discord.User):
3636

3737
profile = see_user_data(member.id)
3838
log_info(f"Data on {member} requested by {ctx.author}.")
39-
log_info(profile)
39+
log_debug(profile)
4040
embed = embed_user_profile(profile)
4141

4242
await ctx.respond(embed=embed)

app/cogs/commands/db_give_points.py renamed to app/cogs/commands/db_points_GIVE.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class DBGivePoints(commands.Cog):
1616
"""
1717
Staff only command to give points to a user. min/max = 1/20.
1818
"""
19+
1920
def __init__(self, bot):
2021
self.bot = bot
2122

@@ -33,7 +34,7 @@ def __init__(self, bot):
3334
@commands.has_role('Staff')
3435
async def give_points(
3536
self
36-
, ctx: discord.ApplicationContext
37+
, ctx: discord.ApplicationContext
3738
, amount_points: int
3839
, user: discord.User
3940
):
@@ -60,7 +61,7 @@ async def cog_command_error(self, ctx: commands.Context, error: commands.Command
6061
reference=ctx.message)
6162
elif isinstance(error, commands.MissingRole):
6263
await ctx.channel.send(f"Sorry, {ctx.author.name}, you must be "
63-
"a member of Staff to use this command!",
64+
"a member of Staff to use this command!",
6465
reference=ctx.message)
6566
else:
6667
raise error

app/cogs/moderation/moderation_points_messaging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async def on_message(self, message):
2323

2424
if message.author != self.bot.user:
2525
points_for_message = len(message.content.split(' '))
26-
log_debug(f'Point added to {message.author} for sending a message.')
26+
log_debug(f'{points_for_message} points added to {message.author} for sending a message.')
2727
give_points_to_user(message.author.id, points_for_message)
2828

2929
@commands.Cog.listener()
@@ -34,7 +34,7 @@ async def on_message_delete(self, message):
3434
"""
3535
if message.author != self.bot.user:
3636
points_for_message = len(message.content.split(' '))
37-
log_debug(f'Point removed from {message.author} for deleting a message.')
37+
log_debug(f'{points_for_message} points removed from {message.author} for deleting a message.')
3838
remove_points_from_user(message.author.id, points_for_message)
3939

4040

0 commit comments

Comments
 (0)