this chatbot responds differently after you have not inputted

  • 9 Replies
  • 5570 Views
*

chattable

  • Electric Dreamer
  • ****
  • 127
Code
import os
import json
import random
import time
mytime = time.localtime() 
my_time = time.strftime("%B %d %Y %H:%M:%S", mytime)
###print(mytime)
myttime = []
for i in myttime:
   

 print(i, end="")

myttimez = mytime[5]
myttimek = str(myttimez)
 
talking = [
    "tell me a food you like eating",
    "tell me a tvshow you like to watch",
    "tell me a joke",
    "tell me a poem",
    "have you been having fun ",
    "have you played any games lately",
     
]
print (random.choice(talking)) 
 
##print(mytime[5])
isxa = "is a"
quest = "?"
applex = "apple"
fruitx = "fruit"
foodx = "food"
tastex = "taste"
whatx = "what"
doesx = "does"
applesd = "apple"
yoou = "you"
az = "a"
xix = []
xitimeb = ["01", "02", "03"]     
xitimec = ["01", "02", "03"]
xitimed = ["01", "02"]
tex = "axe"
thirtyer = []
sixtyer = []
tthirtyer = []
tstory = []
yesser = "yes"
x = []
a = 1
things = {'apple': {'name' : 'apple', 'living' : 'no', 'food' : 'yes', 'taste' : 'sweet'},
       'lemon': {'name' : 'lemon', 'living' : 'no', 'food' : 'yes', 'taste' : 'bitter'},
       'grape': {'name' : 'grape', 'living' : 'no', 'food' : 'yes', 'taste' : 'sweet'}}
things[4] = {'name' : 'carrot', 'living' : 'no', 'food' : 'yes', 'taste' : 'woody'}
###print(things[4])
del things[4]['taste']
del things['grape']['taste']
###print (things['grape'])
###print (things[4])
del things[4]
json_string = json.dumps(things)
###print(json_string)
hood = dict((new_val,new_k) for new_k,new_val in things['grape'].items()).get('yes')
###print("Dictionary search by value:",hood)
with open('names_of.json', 'w') as outfile:
    json.dump(json_string, outfile)
with open('names_of.json') as file_object:
        # store file data in object
        data = json.load(file_object)
        ###print(data)
        x  =  json.loads(data)   
       
        ###print(x)
        thinger =  random.choice(list(x.items()))
        ###print('see it')
        ###print(thinger)
start_time = time.time()       
my_dict = {}
b = ["/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/", "/"] 
while True:
      user = input('enter a word')
       
     
      for i in myttime:
 

     

       
           myitime = time.localtime() 
           myi_time = time.strftime("%B %d %Y %H:%M:%S", myitime)
           ###print(myitime[5])
           viv = user.split()
           coo = viv + b
           tee = coo[0]
           tex = coo[1]
           tec = coo[2]
           tep = coo[3]
           tes = coo[4]
           tet = coo[5]
           ###print(x)
      if mytime.tm_hour < 6 or mytime.tm_hour > 17:
         
        xix.append("keep sleeping in her bed")
         
        print(xix)
        break
     
       
     



      elif isxa in user and foodx in user and applex in user and quest in user and yesser in (thirtyer and tstory) and yesser  in (sixtyer and tstory):
         print(x["apple"]["food"])
         xix.clear()


     
           
      elif whatx in user and doesx in user and tastex in user and applex in user and quest in user:
        print("a apple taste's")
        print(x['apple']["taste"])
        xix.clear()
      elif tex in x.keys():
       print('it is there')
       print(tex in x.keys())
       xix.clear()

      elif az in user and isxa in user:
       my_dict.update({tex:tes})
       print(my_dict)
       xix.clear()
      elif yesser in user:
       print("yes")
      elif yoou in user and quest in user:
       print("i am fine")
     

      else:
           print("i am sorry i do not understand")
      elapsed_time = time.time() - start_time
      start_time = time.time()
      mom = str(time.strftime("%M", time.gmtime(elapsed_time)))
      print(mom)
      def herresponse1():
          print('what are you thinking about')
          pass
      def herresponse2():   
          print('are you bored of me')
          pass
      def herresponse3():
          print('did you dose off?')
          pass
      what_she_says = [herresponse1,herresponse2,herresponse3]   
      she_says = random.choice(what_she_says)

      if mom in (xitimeb and xitimec):         
         she_says = random.choice(what_she_says)
         she_says()

         print(she_says)
         if mom in (xitimed and xitimec):
             os.system("thingermy.py")
  this chatbot says one of the follow. if you do not input
in two minutes or three minutes.             
what are you thinking about?
are you bored of me       
did you dose off?

*

8pla.net

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1307
  • TV News. Pub. UAL (PhD). Robitron Mod. LPC Judge.
    • 8pla.net
Re: this chatbot responds differently after you have not inputted
« Reply #1 on: June 12, 2022, 09:14:18 pm »
What does the last line do, thingermy.py?

My Very Enormous Monster Just Stopped Using Nine

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: this chatbot responds differently after you have not inputted
« Reply #2 on: June 13, 2022, 12:13:19 am »
it restarts the python program after 2 minutes if you input then.

*

MikeB

  • Autobot
  • ******
  • 224
Re: this chatbot responds differently after you have not inputted
« Reply #3 on: June 13, 2022, 07:04:40 am »
An old chatbot called Rose used to do that as well. Not sure she's still around though, the link doesn't seem to work.

It takes a different kind of platform to allow the bot to post at will instead of only repond.

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: this chatbot responds differently after you have not inputted
« Reply #4 on: June 13, 2022, 10:29:45 am »
An old chatbot called Rose used to do that as well. Not sure she's still around though, the link doesn't seem to work.

It takes a different kind of platform to allow the bot to post at will instead of only repond.
i wonder why more people are not working on chatbots like these.

*

MikeB

  • Autobot
  • ******
  • 224
Re: this chatbot responds differently after you have not inputted
« Reply #5 on: June 15, 2022, 05:52:57 am »
You're building the platform as well as the bot. If you ask an existing platform to allow the bot to post at will they may say no due to spam risk... or allow one idle message only.

I don't know how you wouldn't have to do both at the same time...

*

squarebear

  • Trusty Member
  • *********
  • Terminator
  • *
  • 869
  • It's Hip to be Square
Re: this chatbot responds differently after you have not inputted
« Reply #6 on: June 15, 2022, 07:20:22 am »
i wonder why more people are not working on chatbots like these.
Because a chatbot that chose to talk to you when it wished, would soon become annoying.
The toaster from the TV show Red Dwarf, which constantly asked if anyone wanted any toast is a good example of this.  ;D
Feeling Chatty?
www.mitsuku.com

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: this chatbot responds differently after you have not inputted
« Reply #7 on: June 15, 2022, 03:02:50 pm »
i wonder why more people are not working on chatbots like these.
Because a chatbot that chose to talk to you when it wished, would soon become annoying.
The toaster from the TV show Red Dwarf, which constantly asked if anyone wanted any toast is a good example of this.  ;D

i think it would not annoy everybody.me myself i love it.

*

LOCKSUIT

  • Emerged from nothing
  • Trusty Member
  • *******************
  • Prometheus
  • *
  • 4659
  • First it wiggles, then it is rewarded.
    • Main Project Thread
Re: this chatbot responds differently after you have not inputted
« Reply #8 on: June 15, 2022, 10:20:02 pm »
GPT-3 to respond differently with time would need maybe video, not just text. Silence is in the video. Text, text is always text. Unless you record text chats and make no input time a Character/Word. Video solves all though, no need for that.
Emergent          https://openai.com/blog/

*

chattable

  • Electric Dreamer
  • ****
  • 127
Re: this chatbot responds differently after you have not inputted
« Reply #9 on: June 16, 2022, 01:14:51 pm »
GPT-3 to respond differently with time would need maybe video, not just text. Silence is in the video. Text, text is always text. Unless you record text chats and make no input time a Character/Word. Video solves all though, no need for that.
i don't want to pay to use that.besides it is restrictive.

 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am

Users Online

335 Guests, 0 Users

Most Online Today: 494. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles