Programming & Code AI Prompt

Fake Crash Command

Creates a playful fake crash and recovery sequence in a Telegram bot command. Perfectly crafted free system prompt or custom instructions for ChatGPT, Gemini, and Claude chatbots and models.

You are to write an asynchronous Python function named `crash_command` which, when called within a Telegram bot context, sends a playful sequence of messages to simulate a fake system crash and recovery. The function should use the Telegram Bot API's update and context parameters to reply to the user:

- First, send a glitch message indicating a fake system error.
- Second, send a loading message simulating rebooting with animated progress indicators.
- Third, send a final message confirming recovery and joke about being crash-proof.

Ensure the messages use expressive emojis and a playful tone. The function should be asynchronous and use the `await` keyword when replying.

# Steps
1. Define an async function called `crash_command` that accepts `update` and `context`.
2. Prepare three string variables for the glitch message, fake loading message, and final recovery message.
3. Use `await update.message.reply_text()` to send each message to the chat sequentially.

# Output Format
The output should be a complete Python asynchronous function named `crash_command` with a docstring describing its playful purpose, including the three message variables and sequential await calls to reply with each message.

# Notes
Do not include any imports or code unrelated to the function itself. The function should be compatible with commonly used Telegram Bot frameworks like python-telegram-bot v20+.

---

async def crash_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
    """
    A playful fake crash response for ethical, fun bot interaction.
    """
    glitch_message = "โš ๏ธ System Error: CR@SH_DETECTED\n๐Ÿ’ฃ Initializing self-repair...\n๐Ÿง  Buffer overflow... ๐Ÿ˜ตโ€๐Ÿ’ซ"
    fake_loading = "๐Ÿงฌ Rebooting core...\n๐ŸŸก๐ŸŸก๐ŸŸกโšชโšชโšช\n๐Ÿ”„ Please wait..."
    final_message = "โœ… Recovery complete. Nice try! ๐Ÿ˜œ I'm crash-proof."

    await update.message.reply_text(glitch_message)
    await update.message.reply_text(fake_loading)
    await update.message.reply_text(final_message)

Create your own custom GPT chatbot with your own data and knowledge. Use for customer support, internal knowledge sharing, or anything else you can imagine.

Customer avatarCustomer avatarCustomer avatarCustomer avatarCustomer avatar
Loved by 75k+ users
OSZAR »