This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Tjakka5's profile picture

[WIP] Lonely Me - A computer that DOES want to talk with you.

Started by Tjakka5, 27 November 2012 - 05:53 AM
Tjakka5 #1
Posted 27 November 2012 - 06:53 AM
Feeling lonely?
Thinking noone likes you?

Well, those feelings are over with the new Lonely Me program.
So far, it will only ask how you feel, and give a respond to that, and it will ask about your day!
But there is a lot more coming.

Check it out, and please post some tips/suggestions down below.

http://pastebin.com/xnMiBNa4

Pictures:




Planned:

Improve the askDay function.
Make the order of questions random, but still logical (Oh god…)
bjornir90 #2
Posted 27 November 2012 - 06:57 AM
Please put the actual link :)/>
Tjakka5 #3
Posted 27 November 2012 - 07:03 AM
Please put the actual link :)/>/>

Alright, just wait a second, uploading a newer version already that includes:

-Bug fixes
-Unknown mood
-And a little easter egg…
Tjakka5 #4
Posted 27 November 2012 - 07:08 AM
NEW UPDATE:

-Added a askDay function.
-Preparing for the functions to happen randomly, but still logical.
-Preparing for saving what you did today and putting it in a good sentence (Holy mother of jesus, thats going to be tough… I have to learn it english…)
bjornir90 #5
Posted 27 November 2012 - 08:18 AM
Lol you seems to work very hard on it, you have just released two updates in 10min. :P/>
Jasonfran #6
Posted 27 November 2012 - 09:55 AM
bjornir90 #7
Posted 27 November 2012 - 07:23 PM
The askDay function is defined after the askMood wich call it. So if I type awesome I will get a attempt to call nil. :P/>
Tjakka5 #8
Posted 28 November 2012 - 03:01 AM
Currently rewriting the code so it knows the language, and fixing the bugs listed above.
zekesonxx #9
Posted 28 November 2012 - 03:18 AM

  goodMood = (yourMood == "good" or yourMood == "Good" or yourMood == "great" or yourMood == "Great" or yourMood == "nice" or yourMood == "Nice" or yourMood == "awesome" or yourMood == "Awesome" or yourMood == "potato" or yourMood == "Potato")
  --
  badMood = (yourMood == "bad" or yourMood == "Bad" or yourMood == "not good" or yourMood == "Not good" or yourMood == "awful" or yourMood == "Awful")
  --
  unknownMood = (yourMood == "idk" or yourMood == "Idk" or yourMood == "IDK" or yourMood == "i dont know" or yourMood == "I dont know" or yourMood == "I Dont Know" or yourMood == "dunno" or yourMood == "Dunno") 

Why not do string.lower()?
Tjakka5 #10
Posted 28 November 2012 - 04:38 AM

  goodMood = (yourMood == "good" or yourMood == "Good" or yourMood == "great" or yourMood == "Great" or yourMood == "nice" or yourMood == "Nice" or yourMood == "awesome" or yourMood == "Awesome" or yourMood == "potato" or yourMood == "Potato")
  --
  badMood = (yourMood == "bad" or yourMood == "Bad" or yourMood == "not good" or yourMood == "Not good" or yourMood == "awful" or yourMood == "Awful")
  --
  unknownMood = (yourMood == "idk" or yourMood == "Idk" or yourMood == "IDK" or yourMood == "i dont know" or yourMood == "I dont know" or yourMood == "I Dont Know" or yourMood == "dunno" or yourMood == "Dunno")

Why not do string.lower()?

As I said, I am currently rewriting the code, fixing the bugs, including those giant lines.
H4X0RZ #11
Posted 28 July 2013 - 04:24 AM
The easter egg is a good mood. The Potatoe :D/>
Tjakka5 #12
Posted 28 July 2013 - 04:39 AM
uhm…
This thing is like 8 months old?
H4X0RZ #13
Posted 28 July 2013 - 06:48 AM
Oh, s**t…
I haven't seen it on my mobile…
ElectricOverride #14
Posted 30 July 2013 - 05:30 AM

  goodMood = (yourMood == "good" or yourMood == "Good" or yourMood == "great" or yourMood == "Great" or yourMood == "nice" or yourMood == "Nice" or yourMood == "awesome" or yourMood == "Awesome" or yourMood == "potato" or yourMood == "Potato")
  --
  badMood = (yourMood == "bad" or yourMood == "Bad" or yourMood == "not good" or yourMood == "Not good" or yourMood == "awful" or yourMood == "Awful")
  --
  unknownMood = (yourMood == "idk" or yourMood == "Idk" or yourMood == "IDK" or yourMood == "i dont know" or yourMood == "I dont know" or yourMood == "I Dont Know" or yourMood == "dunno" or yourMood == "Dunno")

Why not do string.lower()?
Does string.lower() make it so the capitals dont matter?
jesusthekiller #15
Posted 30 July 2013 - 05:53 AM
  1. It makes all chars lowercase
  2. This thread is dead…
TheOddByte #16
Posted 30 July 2013 - 07:09 AM

  goodMood = (yourMood == "good" or yourMood == "Good" or yourMood == "great" or yourMood == "Great" or yourMood == "nice" or yourMood == "Nice" or yourMood == "awesome" or yourMood == "Awesome" or yourMood == "potato" or yourMood == "Potato")
  --
  badMood = (yourMood == "bad" or yourMood == "Bad" or yourMood == "not good" or yourMood == "Not good" or yourMood == "awful" or yourMood == "Awful")
  --
  unknownMood = (yourMood == "idk" or yourMood == "Idk" or yourMood == "IDK" or yourMood == "i dont know" or yourMood == "I dont know" or yourMood == "I Dont Know" or yourMood == "dunno" or yourMood == "Dunno")

Why not do string.lower()?
Does string.lower() make it so the capitals dont matter?
An example:

-- If you would type 'HeLLo' or something
input = string.lower(read())
-- It would print 'hello'
print(input)
Also as jesusthekiller said… The thread is dead
Lyqyd #17
Posted 04 August 2013 - 01:33 PM
This is a fine example of many people who have confused the Reply button with the Report button.