agent-rotation / app.py
kaosnet's picture
Update app.py
a0cccdf verified
Raw
History Blame Contribute Delete
1.81 kB
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()