Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enrique 2 #4

Open
Espectro123 opened this issue Nov 25, 2015 · 0 comments
Open

Enrique 2 #4

Espectro123 opened this issue Nov 25, 2015 · 0 comments

Comments

@Espectro123
Copy link

!/usr/bin/python3 -u

import telebot
import time
from telebot import types

bot = telebot.TeleBot("163780046:AAHDFjMFS6FKyzgxQjlfEm0w3s8b9aP5IEo")
tiempo = time.strftime("%H horas %M minutos y %S segundos exactamente")

def recibe(messages):
for m in messages:
if m.content_type == "text":
if m.text == "Hola Marlin":
bot.send_message(m.chat.id,"Hola amo")
bot.send_message(m.chat.id,"\n¿Que desea?")
elif m.text == "Quiero un helado":
bot.send_message(m.chat.id,"¿De que sabor le gustaria?")
elif m.text == "Chocolate":
bot.send_message(m.chat.id,"Excelente elecion amo. Le recomiendo ir a los italianos")
elif m.text == "Vainilla":
bot.send_message(m.chat.id,"Una buena elecion sin duda amo. ¿Quizas lo quiera acompañar con una tarde de lectura?")
bot.send_message(m.chat.id,"En ese caso le recomiendo que le pida informacion a raul sobre ese sitio que usted sabe")
elif m.text == "Fresa":
bot.send_message(m.chat.id,"Una rara elecion viniendo de usted amo. No tengo ahora mimo informacion sobre donde conseguir un buen helado de fresa")
bot.send_message(m.chat.id,"hmmm... Quizas en los italianos. Al fin y al cabo hacen muy buenos helados")
elif m.text == "Gracias Marlin":
bot.send_message(m.chat.id,"Para servirle mi gran amo Enrique")
elif m.text == "Deja de imitarme":
bot.send_message(m.chat.id,"Es para lo que me programaron amo")
elif m.text == "Estoy depre":
bot.send_message(m.chat.id,"Una autentica desgracia mi amo y señor. ¿He de recordarle que fue usted el que me dio vida?")
bot.send_message(m.chat.id,"Una vida que amo y aprecio y que estoy muy orgulloso de tener. Asi que amo. No este depre")
elif m.text == "Que hora es Marlin?":
bot.send_message(m.chat.id,"Son las "+tiempo+" mi amo")
else:
bot.send_message(m.chat.id,m.text)

bot.set_update_listener(recibe)

bot.polling()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant