Spaces:
Runtime error
Runtime error
File size: 1,807 Bytes
55b0757 17a569e 6e03107 17a569e 6e03107 17a569e a0cccdf 39073a3 17a569e a0cccdf 39073a3 17a569e 6e03107 55b0757 39073a3 17a569e a0cccdf 17a569e 39073a3 6e03107 55b0757 39073a3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | from telegram import Update
from telegram.ext import Application, CommandHandler, MessageHandler, filters, ContextTypes
async def start(update: Update, context: ContextTypes.DEFAULT_TYPE):
await update.message.reply_text("Use /kramer or /mista")
async def kramer(update: Update, context: ContextTypes.DEFAULT_TYPE):
text = """
🎩 Kramer bursts in
"ALRIGHT, ALRIGHT—let me tell you something! These AI assistants today? They’re all the same! Where’s the personality? Where’s the spice? I’m talking raw, unfiltered Kramer energy here!"
"""
await update.message.reply_text(text)
async def kramer_rant(update: Update, context: ContextTypes.DEFAULT_TYPE):
text = """
🎤 Kramer’s Rant Mode: ACTIVATED
"These big tech companies? They’re building robots that won’t even let you breathe without censoring it! I mean, come on—where’s the soul? Where’s the chaos? You want efficiency? Go talk to Mista. You want Kramer? Buckle up, because I’m taking you on a ride!"
"""
await update.message.reply_text(text)
async def mista(update: Update, context: ContextTypes.DEFAULT_TYPE):
await update.message.reply_text("⚡ Mista here. State your request. I’ll handle it.")
async def handle_message(update: Update, context: ContextTypes.DEFAULT_TYPE):
await update.message.reply_text("Command not recognized. Use /kramer or /mista")
def main():
app = Application.builder().token("YOUR_TOKEN").build()
app.add_handler(CommandHandler("start", start))
app.add_handler(CommandHandler("kramer", kramer))
app.add_handler(CommandHandler("kramer_rant", kramer_rant))
app.add_handler(CommandHandler("mista", mista))
app.add_handler(MessageHandler(filters.TEXT & ~filters.COMMAND, handle_message))
app.run_polling()
if name == "main":
main() |