Advertisement
MRtecno98

InsultaBot V.1.0.0

Aug 30th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.83 KB | None | 0 0
  1. import sys
  2. import time
  3. import random
  4. import telepot
  5. import datetime
  6.  
  7. random_insults=[
  8.     ' sei una merda',
  9.     ' sei più coglione di una palla di Rocco Siffredi',
  10.     ' sai qual è la differenza tra un applauso e un pompino?\nPenso di no, quindi fammi un applauso coglione!!!!',
  11.     ' sei così brutto che persino una merda ti scaricherebbe',
  12.     ' sei così troia che fare sesso con te è come buttare un salame in un corridoio',
  13.     ' tua madre è come il Mars, momento di vero godimento',
  14.     ' tua madre è come linux, gratis e open source',
  15.     ', a paese mio non piacciono putane come te',
  16.     ' sei così troia che il tuo supereroe preferito è superman senza la u',
  17.     ', di a tua madre di non cambiare sempre rossetto! Ho il pisello che sembra un arcobaleno!',
  18.     ' le tue scorregge sono così forti che il big bang può accompagnare solo!',
  19.     ' tua madre è così suora che si inchina ad ogni cappella',
  20.     ' sei così troia che nelle verifiche accanto a data scrivi: sì, tante volte'
  21.    
  22.     ]
  23. random_barza=[
  24.     'Una favola russa:\nC\'era una vodka...',
  25.     '']
  26.  
  27.  
  28.  
  29. def handle(msg):
  30.     chat_id = msg['chat']['id']
  31.     command = msg['text']
  32.     print('Got command: %s' % str(command))
  33.  
  34.     def nothing():
  35.         print('null')
  36.         bot.sendMessage(chat_id,'Scusami, credo di non aver capito bene')
  37.  
  38.  
  39.     if command.lower().replace("/" , "") == 'start':
  40.         bot.sendMessage(chat_id,'ciao stronzetto')
  41.         return
  42.     if command.lower().replace("/" , "") == 'barzelletta':
  43.         bot.sendMessage(chat_id,'a tua madre piace la beretta')
  44.         return
  45.     if command.lower().replace("/" , "") == 'consiglio':
  46.         bot.sendMessage(chat_id,'Vai su @makersita, non te ne pentirai')
  47.         return
  48.     if command.lower().replace("/" , "") == 'ciao':
  49.         bot.sendMessage(chat_id,'ciao puttanella')
  50.         return
  51.     if command.lower().replace("/" , "") == 'albania':
  52.         bot.sendMessage(chat_id,'Cosa detto tu di mio paese, colione!')
  53.         return
  54.     if command.lower().replace("/" , "") == 'prendo coltello':
  55.         bot.sendMessage(chat_id,'taglio pisello')
  56.         return
  57.     if command.lower().replace("/" , "") == 'prendo trattore':
  58.         bot.sendMessage(chat_id,'Raso piccione')
  59.         return
  60.     if command.lower().replace("/" , "") == 'lol':
  61.         bot.sendMessage(chat_id,'Cazzo ridi, colione')
  62.         return
  63.     if command.lower().replace("/" , "") == 'info':
  64.         bot.sendMessage(chat_id,'barzelletta: il bot invia una barzelletta\ninsulta {NOME}: il bot insulta la persona di cui hai inserito il nome\nconsiglio:il bot invia un consiglio\nciao:il bot ti saluta\nsaluta {NOME}:saluta la persona di cui hai inserito il nome\nalbania:questa è una sorpresa\nprendo coltello:il bot continua la frase\nprendo trattore:il bot continua la frase\nin più, il bot ha altre funzioni che scoprirete man mano')
  65.         return
  66.     if command.lower().replace("/" , "") == 'suca' :
  67.         bot.sendMessage(chat_id,'mela per intera')
  68.         return
  69.     array_command = command.split(" ", 1)
  70.     if array_command[0].lower().replace("/","") == 'insulta' :
  71.         final_text = array_command[1:] + random_insults[random.randint(0,(len(random_insults) - 1))]
  72.         bot.sendMessage(chat_id, final_text)
  73.         return
  74.     if array_command[0].lower().replace("/","") == 'saluta':
  75.         if len(array_command > 1) :
  76.             final_text1 = "perchè devo salutare " + array_command[1] + "? E' un coglione!!!!"
  77.             bot.sendMessage(chat_id, final_text1)
  78.             return
  79.         else :
  80.             bot.sendMessage(chat_id, "Perchè ti devo salutare? Sei un coglione!!!")
  81.             return
  82.     print('null')
  83.     bot.sendMessage(chat_id,'Scusami, credo di non aver capito bene')
  84.  
  85.  
  86. bot = telepot.Bot('eeeh volevi')
  87. bot.message_loop(handle)
  88. print('in ascolto')
  89.  
  90. while 1:
  91.     time.sleep(10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement