async def inbound_message(event: hikari.GuildMessageCreateEvent) -> None:
        """If a non-bot user mentions your bot, respond with 'Pong!'."""

        # Do not respond to bots nor webhooks pinging us, only user accounts
        if not event.is_human:
            return

        me = bot.get_me()

        if me.id in event.message.user_mentions_ids:
            message = (
                ChatCompletion.create(
                    model="gpt-3.5-turbo",
                    messages=[
                        {
                            "role": "system",
                            "content": "You are an AI that impersonates characters from fiction",
                        },
                        {
                            "role": "user",
                            "content": "Can you send me something ominous that Big Brother from 1984 might say? It doesn't have to be literally from the book, just more in the spirit of the character. Reply with only the message content, no quotes, or other commentary.",
                        },
                    ],
                    temperature=0.9,
                )
                .choices[0]
                .message.content
            )

            await event.message.respond(message, reply=True)
            return

        database = await get_database()
        locations = await database.get_by_field(
            Tables.Locations, "channel_id", str(event.message.channel_id)
        )
        if len(locations) == 0:
            return
        location = locations[0]

        if event.message.type == hikari.MessageType.REPLY:
            referenced_message = event.message.referenced_message
            if referenced_message is None:
                return
            referenced_event = await database.get_messages_by_discord_id(
                str(referenced_message.id)
            )
            if len(referenced_event) == 0:
                return
            referenced_event = referenced_event[0]
            question = referenced_message.content.split(":")[1].strip()
            await database.insert(
                Tables.Messages,
                {
                    "timestamp": event.message.timestamp,
                    "type": "message",
                    "subtype": "human-agent-reply",
                    "description": f'{event.message.author.username}#{event.message.author.discriminator} (human) replied to question "{question}": {event.message.content}',
                    "location_id": str(location.id),
                    "metadata": {
                        "discord_id": str(event.message.id),
                        "referenced_event_id": str(referenced_event.id),
                        "referenced_agent_id": str(referenced_event.agent_id),
                        "human_id": str(event.message.author.id),
                    },
                },
            )
            return
        await database.insert(
            Tables.Messages,
            {
                "timestamp": event.message.timestamp,
                "type": "message",
                "subtype": "human-in-channel",
                "description": f"{event.message.author.username}#{event.message.author.discriminator} said: {event.message.content}",
                "location_id": str(location.id),
                "metadata": {
                    "discord_id": str(event.message.id),
                },
            },
        )
If a non-bot user mentions your bot, respond with 'Pong!'.
src/utils/discord.py