Esempio n. 1
0
   def respond(context):
      State.forceState(SolicitUser,{'_nick': context['_nick']})

      solicitations = ["Do you want to hear some gossip?",
                       "Would you like me to tell you some gossip?",
                       "I know something really interesting. Would you like to hear about it?",
                       "I have some gossip, would you like me to share it with you?"]

      rand_ndx = random.randint(0, len(solicitations) - 1)
      return "Midnight. " + solicitations[rand_ndx]
Esempio n. 2
0
   def respond(context):
      if context['type'] == 'well_being':
         InquiryState.responce_type = 1
         State.forceState(SolicitUser,{'_nick': context['_nick']})
         solicitations = ["Do you want to hear some gossip?",
                          "Would you like me to tell you some gossip?",
                          "I know something really interesting. Would you like to hear about it?",
                          "I have some gossip, would you like me to share it with you?"]
         rand_ndx = random.randint(0, len(solicitations) - 1)


         responses = ["I\'m doing awful. Thanks for asking. But maybe you could help. ",
                      "I am doing great, I keep hearing all these interesting rumors. ",
                      "Not bad, Could be better "]

         rand_ndy = random.randint(0, len(responses) - 1)

         return responses[rand_ndy] + solicitations[rand_ndx]
      else:
         InquiryState.responce_type = 0
         return 'Not much, what\'s up with you?'