From 822604c501f1e6261ec87eec2ffc372e9903a4d2 Mon Sep 17 00:00:00 2001 From: "linus.wagner" Date: Wed, 3 Oct 2018 11:51:14 +0200 Subject: [PATCH] The good life is comming --- goodlife.txt | 26 ++++++++++++++++++++++++++ schneiderbot.py | 16 +++++++++++++--- 2 files changed, 39 insertions(+), 3 deletions(-) create mode 100644 goodlife.txt diff --git a/goodlife.txt b/goodlife.txt new file mode 100644 index 0000000..f7fb3b3 --- /dev/null +++ b/goodlife.txt @@ -0,0 +1,26 @@ +I like Aurora, 'Sleeping Beauty,' because she's just sleeping and looking pretty and waiting for boys to come kiss her. Sounds like a good life - lots of naps and cute boys fighting dragons to come kiss you. +Let's choose today to quench our thirst for the 'good life' we thinks others lead by acknowledging the good that already exists in our lives. We can then offer the universe the gift of our grateful hearts. +The good life is built with good relationships. +People are just trying to work their jobs, raise their families, discipline their kids, and have a good life... Politics has just become like bad weather. And they deserve clear skies. +I grew up in a family where everybody had a good time and we were at the lake every weekend and going to the beach and living a good life. It's been the way we always lived, and my wife's the same way - enjoy every day and have fun. +We are constituted so that simple acts of kindness, such as giving to charity or expressing gratitude, have a positive effect on our long-term moods. The key to the happy life, it seems, is the good life: a life with sustained relationships, challenging work, and connections to community. +There are three ingredients in the good life: learning, earning and yearning. +The good life consists in deriving happiness by using your signature strengths every day in the main realms of living. The meaningful life adds one more component: using these same strengths to forward knowledge, power or goodness. +I want to do things of significance, things that will inspire people to know how good life can be. +Thank you, dear God, for this good life and forgive us if we do not love it enough. Thank you for the rain. And for the chance to wake up in three hours and go fishing: I thank you for that now, because I won't feel so thankful then. +My goal in life was to pursue the good life. +The good life is a process, not a state of being. It is a direction not a destination. +You are educated. Your certification is in your degree. You may think of it as the ticket to the good life. Let me ask you to think of an alternative. Think of it as your ticket to change the world. +I have a very, very good life. I'm grateful for all of my friends, my family and the life that I have, and the possibilities in my future. +Money and good life had never been my goal. +The definition of success to me is not necessarily a price tag, not fame, but having a good life, and being able to say I did the right thing at the end of the day. +Reading is a basic tool in the living of a good life. +Not life, but good life, is to be chiefly valued. +Life comes from physical survival; but the good life comes from what we care about. +Without being aware, I think I was being indoctrinated into what was called Vitalism, the idea that what makes life worth living, the good life, consists of accepting challenges, solving problems, discovery, personal growth, personal change. +Many people dream about being an entrepreneur, starting their own business, working for themselves, and living the good life. Very few, however, will actually take the plunge and put everything they've got into being their own boss. +The more you are positive and say, 'I want to have a good life,' the more you build that reality for yourself by creating the life that you want. +Everything I do is somehow rooted in humanity. It's always about people; it's always about ego. It's always about desperation. It's quite existential. You know, 'Am I leading a good life?' That might be because I'm an atheist, and I think this is all we've got, so you better be nice. And have fun. +The good life is one inspired by love and guided by knowledge. +Life is good when we think it's good. Life is bad when we don't think. +Thank you, God, for this good life and forgive us if we do not love it enough. diff --git a/schneiderbot.py b/schneiderbot.py index 11bff65..f1ce2db 100644 --- a/schneiderbot.py +++ b/schneiderbot.py @@ -86,6 +86,9 @@ with open("stoll.txt", "r") as tmp_file: with open("manta.txt", "r") as tmp_file: MANTA = tmp_file.readlines() + +with open("goodlife.txt", "r") as tmp_file: + GOOD_LIFE = tmp_file.readlines() # Define a few command handlers. These usually take the two arguments bot and # update. Error handlers also receive the raised TelegramError object in error. @@ -106,8 +109,9 @@ def help(bot, update): *Fun*: /cat - random cat (using thecatapi.com) /dog - random dog (https://dog.ceo/dog-api) - /magie - random Axel Stoll qoute + /magie - random Axel Stoll quote /manta - random Opel Manta joke + /goodlife - random good life quote /help - this help text""", parse_mode=ParseMode.MARKDOWN) @@ -145,14 +149,19 @@ def manta(bot, update): """Boah ey, geile Karre!""" rand = random.SystemRandom() update.message.reply_text(MANTA[rand.randrange(0, len(MANTA), 1)]) - + +def goodlife(bot, update): + """GOOD LIFE MY A...""" + rand = random.SystemRandom() + update.message.reply_text(GOOD_LIFE[rand.randrange(0, len(GOOD_LIFE), 1)]) + def shrug(bot, update): """SHRUG""" update.message.reply_text("¯\_(ツ)_/¯") def simon(bot, update): "KAUF DIR N HUND" - update.message.reply_text("@Justus_vonRamme bitte kauf dir ein Hund oder eine Katze, du hast zu viel Zeit") + update.message.reply_text("@Justus_vonRamme bitte kauf dir einen Hund oder eine Katze, du hast zu viel Zeit") def mensa(bot, update, args): which = "zentral" @@ -227,6 +236,7 @@ def main(): dp.add_handler(CommandHandler("help", help)) dp.add_handler(CommandHandler("magie", magie)) dp.add_handler(CommandHandler("manta", manta)) + dp.add_handler(CommandHandler("goodlife", goodlife)) dp.add_handler(CommandHandler("mensa", mensa, pass_args=True)) dp.add_handler(CommandHandler("cat", sendCat)) dp.add_handler(CommandHandler("dog", sendDog))