misc/rm
This commit is contained in:
@ -58,3 +58,15 @@ async def send_message(
|
||||
if not isinstance(_channel, discord.TextChannel):
|
||||
return None
|
||||
await _channel.send(message)
|
||||
|
||||
|
||||
async def log_to_playground(bot: discord.Bot, message: str) -> None:
|
||||
"""
|
||||
Send {message} to playground/log chan
|
||||
Args:
|
||||
bot (discord.Bot): Bot instance
|
||||
message (str): The message to send
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
return await send_message(bot=bot, channel="havoc-playground", message=message)
|
||||
|
@ -208,7 +208,7 @@ class Util:
|
||||
) as db_cursor:
|
||||
if db_cursor.rowcount < 0:
|
||||
logging.critical(
|
||||
"[karma::increment_counter] Fail! %s", db_cursor.rowcount
|
||||
"[increment_counter] Fail! %s", db_cursor.rowcount
|
||||
)
|
||||
return False
|
||||
await db_conn.commit()
|
||||
|
Reference in New Issue
Block a user