/mili

Save Your Dreams With Dream Demon !

When I wake up today as my usual task I do in my computer, try to find logs in my brain !!!
Logs about my dreams saw last night !
I know, I will be mad soon
Anyway if you want run dream demon like me, run this code in your brain when you want sleep :
import dream
import time
import threading 
class Milad ( threading.Thread ):
def run ( self ):
try :
#don't fear ! if you want wake up just want
#after that time.Wakeup exception will be happen

time.sleep(dream.ONE_YEAR)
except dream.StartStory story:
f=open("dreams.txt")
f.write("%s\n"%(story))
f.close()
self.run()
except time.Wakeup :
pass 
Milad().start()
of course don’t forget to change class name with your name, else I don’t know it would work for you or not !