Skip to the content.

Changelog - Version 4.2 (2024-05-07)

Added

if '(user)' in response:
    user_mention = re.search(r'<@(\d+)>', messageContent)
    if user_mention:
        mentioned_user_id = user_mention.group(1)
        # Use mentioned user's name
        user_name = await get_display_name(mentioned_user_id)
    else:
        # Default to message author's name
        user_name = messageAuthor
    response = response.replace('(user)', user_name)
if '(command.' in response:
    command_match = re.search(r'\(command\.(\w+)\)', response)
    if command_match:
        sub_command = command_match.group(1)
        mysql_cursor.execute('SELECT response FROM custom_commands WHERE command =(sub_command,))
        sub_response = mysql_cursor.fetchone()
        if sub_response:
            response = response.replace(f"(command.{sub_command})", sub_response[0])
            responses_to_send.append(sub_response[0])
        else:
            chat_logger.error(f"{sub_command} is no longer available.")
            await message.channel.send(f"The command {sub_command} is no longer available.")

Fixed

is_broadcaster = messageAuthor.lower() == CHANNEL_NAME.lower()
user_level = 'broadcaster' if is_broadcaster else 'mod' if is_mod else 'vip' if is_vip else 'normal'
mysql_cursor.execute('SELECT raid_count, viewers FROM raid_data WHERE raider_id = %s', (from_broadcaster_id,))
mysql_cursor.execute("SELECT discord_alert_online FROM profile")
discord_url = mysql_cursor.fetchone()
if new_commands:
    placeholders = ', '.join(['(%s)'] * len(new_commands))
    values = [(command,) for command in new_commands]
    mysql_cursor.executemany("INSERT INTO builtin_commands (command) VALUES " + placeholders, values)
    mysql_connection.commit()

Changed

Thank you for your feedback and support!

As always, your feedback is appreciated. Please report any issues, bugs, or suggestions in the #ticket-info channel on our Discord server. You can also submit feedback and bug reports directly on our website: https://botofthespecter.com/feedback.php