From 81c33c1d28e90c3534589f0ba8eeedca9dc93bd5 Mon Sep 17 00:00:00 2001 From: Allison Chapman Date: Mon, 18 Sep 2023 15:14:09 -0400 Subject: [PATCH] Fixed to run on Pi Zero --- actions/__init__.py | 3 +- actions/aster.py | 31 +-- actions/qotd.py | 43 ++- actions/random_questions.csv | 500 +++++++++++++++++++++++++++++++++++ data/random_questions.csv | 497 ++++++++++++++++++++++++++++++++++ main.py | 3 +- requirements.txt | 2 - 7 files changed, 1034 insertions(+), 45 deletions(-) create mode 100644 actions/random_questions.csv create mode 100644 data/random_questions.csv diff --git a/actions/__init__.py b/actions/__init__.py index 55b713b..d6906ec 100644 --- a/actions/__init__.py +++ b/actions/__init__.py @@ -1,6 +1,5 @@ from .beep import BeepCommand from .qotd import QotdCommand -from .trivia import TriviaCommand from .aster import AsterCommand -__all__ = ["BeepCommand", "QotdCommand", "TriviaCommand"] \ No newline at end of file +__all__ = ["BeepCommand", "QotdCommand", "AsterCommand"] \ No newline at end of file diff --git a/actions/aster.py b/actions/aster.py index 95b55c4..75d459c 100644 --- a/actions/aster.py +++ b/actions/aster.py @@ -1,8 +1,6 @@ from signalbot import Command, Context import openai import os -openai.organization = "org-39lwdYbHwZNWOWJ9k9IrCctR" -openai.api_key = os.getenv("OPENAI_API_KEY") class AsterCommand(Command): def describe(self) -> str: @@ -10,16 +8,19 @@ def describe(self) -> str: async def handle(self, c: Context): command = c.message.text - if "aster" in command.lower(): - await c.start_typing() - await c.react('🤖') - response = openai.ChatCompletion.create( - model="gpt-3.5-turbo", - messages=[ - {"role": "system", "content": "You are a chat bot called Asterbot. You are here to assisted The Constellation which consists of Alli, Jen, Ellie, and Sae. They are a queer polycule"}, - {"role": "user", "content": command} - ] - ) - await c.reply(response.choices[0].message) - await c.stop_typing() - return + print(c.message.mentions) + if len(c.message.mentions) > 0: + if "2219a1a4-828b-4af1-9804-ca839236d40f" in c.message.mentions[0]["uuid"]: + await c.start_typing() + await c.react('🤖') + openai.api_key = os.getenv("OPEN_AI") + response = openai.ChatCompletion.create( + model="gpt-3.5-turbo", + messages=[ + {"role": "system", "content": "You are a chat bot called Asterbot. You are here to assisted The Constellation a queer lesbian polycule which consists of Alli, Jen, Ellie, and Sae."}, + {"role": "user", "content": command} + ] + ) + await c.send(response.choices[0].message.content) + await c.stop_typing() + return diff --git a/actions/qotd.py b/actions/qotd.py index d0503bb..e8b8165 100644 --- a/actions/qotd.py +++ b/actions/qotd.py @@ -1,34 +1,29 @@ -from selenium.webdriver.chrome.options import Options -from signalbot import Command, Context -from bs4 import BeautifulSoup -import requests -from selenium import webdriver +from signalbot import Command, Context, triggered def get_qotd(): - options = Options() - options.headless = True - driver = webdriver.Chrome(options=options) - driver.get('https://randomwordgenerator.com/question.php') - html = driver.page_source - soup = BeautifulSoup(html, 'html.parser') - s = soup.find('ol', id='result') - driver.quit() - return s.find('span', class_='support-sentence').text + file = open("data/random_questions.csv", "r") + questions = file.read() + question_list = questions.split('\n') + + question = question_list[0] + + with open('data/random_questions.csv', 'w') as fp: + fp.write('\n'.join(question_list[1:])) + + return question class QotdCommand(Command): def describe(self) -> str: return "🏓 Beep Command: Listen for a beep" + @triggered("qotd") async def handle(self, c: Context): - command = c.message.text - - if command == "qotd": - await c.start_typing() - print("command qotd triggered") - await c.react('🤖') - qotd = get_qotd() - await c.reply(f"❓QOTD: {qotd}") - await c.stop_typing() - return + await c.start_typing() + print("command qotd triggered") + await c.react('🤖') + qotd = get_qotd() + await c.reply(f"❓QOTD: {qotd}") + await c.stop_typing() + return diff --git a/actions/random_questions.csv b/actions/random_questions.csv new file mode 100644 index 0000000..76bf1db --- /dev/null +++ b/actions/random_questions.csv @@ -0,0 +1,500 @@ +Where do you draw the line? +What food have you never tried? +Do you have any phobias? +What were you most afraid of when you were younger? Do you still have that fear? +"If you had to describe your current life as a movie, which movie would you choose?" +Do you have a nightmare travel story? +What did you learn from the last book you read? +What do you believe is the biggest thing that's currently holding you back from success? +"If you were to work at a circus, what job would you choose?" +What would someone who doesn't know you well be most surprised about? +What's the one thing that you seem to constantly lose? +Do you have a favorite brand? +What thing from childhood do you still enjoy to this day? +What do you like to do that's traditionally considered masculine? +What is something that you absolutely will not put up with? +"If you could remove something that exists in this world forever, what would it be?" +Do you have a bucket list? +"If you could change one thing about your family, what would it be?" +What do you wish you had spent more time doing when you were younger? +Do you consider yourself an introvert or an extrovert? +What do you like to do that's considered touristy? +Have you ever been punished for something you didn't do? +What is the quickest way for you to lose respect for someone? +"Of all the things you've bought in your life, what has been the worst purchase?" +How long did it take for you to come up with your current signature? +What smell always brings back some type of memory? +What's your current biggest worry? +Have you ever had a missed connection encounter? +What photo have you recently seen that spoke to you? +What's the last thing you did alone and you enjoyed? +What uncommon thing would you encourage everyone to try once? +What's one thing you think you should be doing more often? +What memory have you been thinking about a lot lately? +What is the next skill that you'd like to learn really well? +"If you could lock someone up and throw away the key, would you and if so, who would that be?" +How much damage could your best friend do to you if you ever had a falling out? +Do you remember what the first school report you wrote was about? +How well do you trust your gut feelings? +What's your opinion on social media? +What is something that you learned from simply watching a stranger? +What's a food you vow never to eat? +What the best thing that can happen in the first 5 minutes after waking up? +What do you find extremely difficult that most people find simple? +What obscure interest do you have? +Did you ever have a huge rival? Was the rivalry friendly or fierce? +What's your favorite room in your house and why? +What food do you have a love-hate relationship with? +What activity do you do where your mind wanders in thoughts the most? +What was the last meltdown that you witnessed? +What's something that was completely out-of-character that you did? +What do you think would be the worst thing about being famous? +What were you most afraid of when you were younger? Do you still have that fear? +What memory have you been thinking about a lot lately? +"If you had to pick a single word to describe this year so far, what would it be?" +What's the last thing you did alone and you enjoyed? +Have you ever been punished for something you didn't do? +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +What is something that has had a big impact on your that you observed from afar? +"When you want to escape from everyone, where do you go?" +What was a situation you thought would be terrible but you actually enjoyed it? +What's your opinion on cell phones? +What animal do you think best reflects your personality? +How many chances do you give a person before you write them off? +What holiday do you think more people should celebrate? +"If you had to walk away from one technology in your life, what would it be?" +"Of all the problems in the world, which one would you like to see solved first?" +What's your opinion on tipping? +Who is someone you recently thought about that you haven't seen or talked to in years? +What's the last thing that you broke and how did it happen? +What's the biggest wager you've ever made? +What technology advance are you looking forward to in the future? +How would a random stranger describe you? How accurate would that be? +What's the most recent interesting conversation you had? +What's some small thing you recently noticed? +Is it better to read books in electronic form or actually hold the book? +What's something that really happened to you but nobody would believe unless they were there? +Where was your secret hiding place as a child? +What recent event have you seen that restored your faith in humankind? +What is the most unique cloud you've ever seen in the sky? +Is there anyone that you're wondering about and if they're okay? +How well do you trust your gut feelings? +Would the world be better or worse if superheroes existed? +"If it was possible to transplant your brain to stay alive for another 100 years, would you?" +What type of exercise do you like most? +What are the top three characteristics you feel are important for a person? +What's an interesting fact that you recently learned? +What situation is sure to make you cry? +What's the story behind your greatest treasure? +What is the next big purchase you're currently saving for? +What's your definition of success? Has it changed over time? +What part of the human face do you look at when you talk to someone? +What's the best trick someone has ever played on you? +What is the strangest way you met one of your friends? +What would be the best thing about losing your hearing? +What is something that you don't mind waiting for? +What challenge would you like to see your best friend take on? +What do you consider the most difficult food to eat? +Do you think you're more like your mom or your dad? +Why haven't you done it yet? +What has been your 15 minutes of fame up to this point? +What do you spend too much time doing? +Do you think you're more like your mom or your dad? +What do you think is the most complex aspect about yourself? +What little thing instantly tells you that a person is good? +What piece of art has had a large impact on you? +"If you could change the length of each day to make it perfect for you, how many hours would it be?" +What is something you thought would be a great idea but was terrible when you actually did it? +Do you have a dream job in mind? What would it be? +How many chances do you give a person before you write them off? +What's something that really happened to you but nobody would believe unless they were there? +"What's something that you know you should start, but haven't?" +What food do you have a love-hate relationship with? +"If you had an extra hour a day that had to be allocated to one specific purpose, how would you use it?" +What's the last thing that you broke and how did it happen? +What part of the human face do you look at when you talk to someone? +What is something that you don't mind waiting for? +What's the story behind your favorite memento? +What do you think is your most creative ability? +"If you could only buy ten items at the grocery store to last the next week, what would you buy?" +How would you describe your sense of humor? Can you give an example? +What would your dream day look like? +Who have you met only one time that left a huge impression on you? +What do you consider to be the smartest thing you've ever done in your life so far? +"If you had to choose, would you rather be too hot or too cold?" +What is something that someone does that will immediately turn you off? +What thing have you been procrastinating about that you will begin doing today? +"If you had to ask yourself one question to get the most information out of you, what would that question be?" +What's your favorite room in your house and why? +"If you had to walk away from one technology in your life, what would it be?" +What will be your go-to story when you're old? +How do you think your reality differs from others you know? +What is the most recent life lesson you've learned? +"If you had the opportunity to look through someone's email without them knowing, would you?" +How much damage could your best friend do to you if you ever had a falling out? +Why? +What about you do you seem to get the most comments about? +Where's the next place you want to visit? +Can you describe your personal style? +How do you best like your ice-cream? +What has been your 15 minutes of fame up to this point? +How difficult is it for you to try new things? +What's the last thing that you gave up on? Are you happy or disappointed? +Have you evet taken a long shot that worked out? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +Do you have a bucket list? +What is your current philosophy about money? +"Of all the problems in the world, which one would you like to see solved first?" +What was a past passion that you can't believe you were so passionate about? +"If everyone here was a color, what color would each person be?" +What is the easiest way to bring a smile to your face? +How long do you think you could survive on your own? +What was a situation you thought would be terrible but you actually enjoyed it? +What's some small thing you recently noticed? +What sound will instantly melt your heart? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +What was the last thing that truly disappointed you? +What small stuff do you sweat even though you know you shouldn't? +"If you had to pick a single word to describe this year so far, what would it be?" +What are your favorite five words at the moment? +What's your biggest first world problem? +What part of the human face do you look at when you talk to someone? +What destination is at the top of your list to visit? +"If you could change the color of one thing, what would it be and why?" +Do you name inanimate objects? +"If you were to devote your life to art, what type of art would that be?" +What's your definition of success? Has it changed over time? +What do you consider the most difficult food to eat? +Do you have a moment in your life you wish you could relive? +"If you were required to have a job of some type but you didn't need the money from it to survive, what job would you choose?" +What's your favorite ritual? +What do you try to do to make the world a little better? +What activity do you do where your mind wanders in thoughts the most? +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +Where was your secret hiding place as a child? +Would you prefer to leave where your hometown and never come back or stay in your hometown and never be able to leave? +What were you most afraid of when you were younger? Do you still have that fear? +What smell always brings back some type of memory? +What's your opinion on cell phones? +What is the last big argument you go into and who was it with? +What is the next big purchase you're currently saving for? +What was the last big mistake you made? +What would you do if you saw a giraffe on the side of the road? +What do you wish you had learned five years before you did? +How do you think your reality differs from others you know? +What law have you broken the most in your life? +What's an interesting fact that you recently learned? +What is something that you like that your parents do? +What's the best comeback you've ever heard? +What do you think people pretend to like when they really don't? +What thing have you been procrastinating about that you will begin doing today? +What is something that you would really like to try again? +Do you think you were ever part of the popular crowd? +What is money to you? +What food combination do you eat that makes others cringe? +Does your family have any weird traditions? +"If you had the opportunity to look through someone's email without them knowing, would you?" +How many chances do you give a person before you write them off? +What is something that someone does that will immediately turn you off? +What country sounds interesting but you know very little about it? +How would a random stranger describe you? How accurate would that be? +Would you consider yourself decisive or indecisive? +Have you ever been punished for something you didn't do? +What's the strangest thing you've ever found? +What was the best thing you learned in the past year? +What were you most afraid of when you were younger? Do you still have that fear? +"Have you ever had a terrible house guest? If so, what happened?" +What's the next line to cross off your list? +What is the assumption that people make about you that's totally wrong? +What's the most difficult choice you were asked to make? +"What's your ""famous person"" story?" +What is your current philosophy about money? +What food combination do you eat that makes others cringe? +What is the strangest way you met one of your friends? +What situation is sure to make you cry? +Which of your past teachers would you like to sit down with and talk to today? +"What recent situation was nearly a disaster, but you were able to prevent it?" +What do you find attractive that others might find unusual? +How difficult is it for you to try new things? +How long does it take you to form an opinion about a person? +What question have people recently been constantly asking you? +What one thing would significantly make your life better? +How many things you currently own do you think you could throw away and not notice a difference in your life? +What have you recently realized you have been doing wrong? +What do you do in secret that you're proud of? +Do you have something special that picks you up when you feel down? What is it? +Do you believe there is only one other person in the world for you or many? +What recent event have you seen that restored your faith in humankind? +How far back can you trace your family tree? +What little thing do you do that you don't think many people notice? +What's something that you think you may have been the only person in the world to ever do? +What are some things don't you understand about the opposite sex? +What's your opinion on naps? +What is your opinion on social media? +What is something you predict will exist in 10 years that doesn't today? +How do you entertain yourself when you're bored? +"If you were handed $500 at this moment, how would you spend it?" +Where do you draw the line? +What's something that you believe you'll never be able to do well? +What have you found more helpful than you ever imagined it could be? +What's your favorite ritual? +Is there anyone that you're wondering about and if they're okay? +What do you see happening in your future? +What's the most difficult thing that you still do each day? +What's the most interesting conversation you eavesdropped on? +Why haven't you done it yet? +What's some small thing you recently noticed? +What is money to you? +Where was your secret hiding place as a child? +What's something that was completely out-of-character that you did? +What do you wish they would teach at school that they don't? +What's stopping you? +What is the most recent life lesson you've learned? +What's your close call story? +Do you consider yourself an introvert or an extrovert? +What's something that you know that few other people know? +What's your favorite thing to do when you're all alone? +What was the last thing that truly disappointed you? +Is there anything that most people find cute that creeps you out? +What would someone who doesn't know you well be most surprised about? +Have you been given any good advice lately? +What's the most interesting thing you have in your pockets right now? +What's the last thing that you gave up on? Are you happy or disappointed? +What do you wish you had learned five years before you did? +When are you most productive? +Where's the next place you want to visit? +What would you be really good at if it wasn't for one thing? +What bad decision did you make that actually turned out to be a good decision? +What's the most amount of money you've ever found? What was the situation? +What do you find attractive that others might find unusual? +What have you recently felt grateful for? +What memory have you been thinking about a lot lately? +How long did it take for you to come up with your current signature? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +Do you have a reoccurring dream? +How long do you think you could survive on your own? +"What's your ""famous person"" story?" +Do you believe there is only one other person in the world for you or many? +What's the most difficult thing that you still do each day? +"If you could change the color of one thing, what would it be and why?" +What's something others purchase that you simply can't understand why? +"If you had to change the language you speak, which one would you choose?" +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +What do you think is the most useful skill to know? +What's some small thing you recently noticed? +What is the last encounter you had with a random stranger? +What's the last thing you did alone and you enjoyed? +What's your favorite daily routine? +Who have you met only one time that left a huge impression on you? +What do you consider the best decision you've made thus far in your life? +What is your current philosophy about money? +What recent event have you seen that restored your faith in humankind? +"If you could choose to be famous for something, what would it be?" +What do you see happening in your future? +"Have you ever had a terrible house guest? If so, what happened?" +"What does it mean to ""live a good life"" in your opinion?" +"If you could only buy ten items at the grocery store to last the next week, what would you buy?" +What have you recently realized you have been doing wrong? +"Without saying the category, what are your top five?" +What do you think is your most creative ability? +What do you like best about yourself? +Do you think you're more like your mom or your dad? +Would you consider yourself decisive or indecisive? +What do you find is the most boring part of your life at the moment? +How long do you think you could survive on your own? +Who was the last person you made happy and what did you do to do it? +Do you have a dream job in mind? What would it be? +Do you have a secret place? +What smell always brings back some type of memory? +What was the last big mistake you made? +"If you knew the winning lottery numbers, would you keep them to yourself or share with others?" +What's your favorite form of entertainment? +What type of exercise do you like most? +How do you approach life? +What's something uncomfortable but you feel everyone should experience at least once in their life? +Would you feel comfortable showing me the photos on your phone? +What is the oddest form of entertainment you enjoy? +What argument did you have that looking back on was absolutely ridiculous? +Where's the next place you want to visit? +What do you wish you had spent more time doing when you were younger? +"If you could change the color of one thing, what would it be and why?" +What are your favorite five words at the moment? +What is your opinion on tattoos? +What food combination do you eat that makes others cringe? +Are you a planner or more of a go with whatever happens when it comes to travel? +What's something that is common today that humans will be embarrassed about doing in 50 years? +Is there anyone that you're wondering about and if they're okay? +What's stopping you? +Where was your secret hiding place as a child? +"If you were going to start your own business, what would it be?" +What's the best part of rain? +Do you remember what the first school report you wrote was about? +How many chances do you give a person before you write them off? +What holiday do you think more people should celebrate? +What's a situation when you look back you should have gone ahead and done it? +What is something you thought would be a great idea but was terrible when you actually did it? +What will be your go-to story when you're old? +"If you could change one thing about your family, what would it be?" +What is the most unique cloud you've ever seen in the sky? +"When you're by yourself, what do you usually think about?" +What's something that you recently learned that everyone else already knew? +What is the funniest false thing you were able to convince others that's true? +Did you ever have a huge rival? Was the rivalry friendly or fierce? +What piece of art has had a large impact on you? +What types of things do you doodle? +What is socially acceptable today that you think won't be in 10 years? +"If you had the opportunity to look through someone's email without them knowing, would you?" +What do you love most about where you grew up? +Do you have any unusual fears? +What do you find extremely difficult that most people find simple? +What's your knowing just enough to be dangerous story? +"If everyone here was a color, what color would each person be?" +What can you talk about for hours? +What's the most amount of money you've ever found? What was the situation? +What is something that happened to you that you can't logically explain? +What's something that really happened to you but nobody would believe unless they were there? +What do you love most about where you grew up? +What is something immature you think your parents do? +Do you think you were ever part of the popular crowd? +What is something that someone does that will immediately turn you off? +What would be the best and worst part of being a cat in your opinion? +What's your knowing just enough to be dangerous story? +Is there any place that you have no desire to visit? Why? +"If you could assign one household chore to someone else, what would it be?" +How far back can you trace your family tree? +Do you believe that money can make you happy? +What was the last big mistake you made? +What foods did you used to like but don't anymore? +"If you had to pick a single word to describe this year so far, what would it be?" +What is the most recent life lesson you've learned? +"What have you done that you didn't like, but would you be willing to give it another shot?" +Do you consider yourself an introvert or an extrovert? +Do you name inanimate objects? +What's the embarrassing story that your parents used to tell others about you? +What's your story about breaking the law? +"If you had to change the language you speak, which one would you choose?" +What part of history do you find most interesting? +"Do you, or did you in the past, have any strange habits?" +What old school skill set do you have? +How often do you find yourself daydreaming? +What's the most spontaneous thing you've ever done? +How well do you think you understand yourself? +What's the last thing that you gave up on? Are you happy or disappointed? +What's your favorite thing to do when you're all alone? +What are you currently doubting in your life? +What is your current go-to song to dance to when nobody is around? +What is the last big argument you go into and who was it with? +What's something commonly do today that you think people will wonder why anyone would ever do that fifty years from now? +Has someone ever done a random act of kindness to you? +What do you think is the most useful skill to know? +What has been your biggest financial mistake? +Are you a planner or more of a go with whatever happens when it comes to travel? +What's the last thing that you broke and how did it happen? +Do you have any apps on your phone that you've never used? +What animal do you think best reflects your personality? +What's the most difficult choice you were asked to make? +What song currently speaks to you the most? +Who is the luckiest person you know? +What is something that you like that your parents do? +Do you have a bucket list? +"What's something that you know you should start, but haven't?" +"Do you, or did you in the past, have any strange habits?" +Would you feel comfortable showing me the photos on your phone? +What song currently speaks to you the most? +"If you had to choose, would you rather be too hot or too cold?" +"What does nobody want to talk about, but really should?" +"If you were to be famous for something, what would that be?" +"If you could remove something that exists in this world forever, what would it be?" +What little thing do you do that you don't think many people notice? +What do you find attractive that others might find unusual? +What is the most recent silly thing you did? +Would the world be better or worse if superheroes existed? +What is the most selfish thing you do that you're okay with? +What is your current favorite TV show? What was it 5 years ago? +What thing from childhood do you still enjoy to this day? +Do you have any unusual fears? +What is the most recent fact you learned that surprised you? +What part of the human face do you look at when you talk to someone? +What's your favorite thing to do when you're all alone? +How do you make decisions? +What would be the best thing about losing your hearing? +"If there are 100 people, how many would be more patient than you?" +What would someone who doesn't know you well be most surprised about? +What is something that you learned from simply watching a stranger? +What recent experience made you feel old? +What's something about you today that the old you would find surprising? +What do you consider the most difficult food to eat? +What question do you have that nobody has been able to give you a good answer to? +What's the best way you've found to calm yourself when you get stressed? +What assumption have you made that ended up being completely incorrect? +Do you have a special project you're currently working on? +"What's something that you thought you'd have already done by now, but haven't?" +What do you try to do to make the world a little better? +How do you entertain yourself when you're bored? +What do you secretly hoard? +What is it that motivates yourself the most? +Have you ever let someone else get punished for something you did? +"In emergency situations, how do you react?" +Do you have something special that picks you up when you feel down? What is it? +Have you ever been punished for something you didn't do? +Why? +"On any given day, what do you think you spend the most time doing?" +What weird thing do you do when nobody else is around? +Is there a part of your culture that you don't like? +What were you most afraid of when you were younger? Do you still have that fear? +What will be your go-to story when you're old? +"What doesn't exist, but should?" +Can you explain love? +How would you describe your sense of humor? Can you give an example? +At what age did you think you become an adult and when do you actually think you did? +"If each person had a warning label, what would yours say?" +What holiday do you think more people should celebrate? +What's the best compliment you ever received? +Can you name 5 things you wouldn't do for a million dollars? +"If you could assign one household chore to someone else, what would it be?" +"If you had an extra hour a day that had to be allocated to one specific purpose, how would you use it?" +What's the next line to cross off your list? +Do you consider yourself an introvert or an extrovert? +What's your close call story? +What uncommon thing would you like to see become more common? +What activity do you do where your mind wanders in thoughts the most? +What's something that you completely don't understand? +What's your favorite daily routine? +What bad decision did you make that actually turned out to be a good decision? +How many things you currently own do you think you could throw away and not notice a difference in your life? +What do you like best about yourself? +What's your opinion on social media? +What have you recently realized you have been doing wrong? +"If you had to walk away from one technology in your life, what would it be?" +What's something that you believe that most other people don't? +"What was your last ""ah-ha"" moment?" +What's an example of when you changed your mind? +What's the best way you've found to calm yourself when you get stressed? +How far back can you trace your family tree? +What's the way you find yourself procrastinating most? +Have you ever had or witnessed a drop the mic moment? +What food combination do you eat that makes others cringe? +What's the story behind why you replaced the last phone you had? +What's your opinion on naps? +What do you think would be the worst thing about being famous? +Have you ever been at an event that you think will one day be in history books? +How would you describe your sense of humor? Can you give an example? +Why haven't you done it yet? +"If someone were to sum you up with a phrase, what would that phrase be?" +What is the last big goal you accomplished? +What challenge would you like to see your best friend take on? +What's the most difficult thing about being you? +What are you currently doubting in your life? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +What is your biggest regret from the last month? +Do you name inanimate objects? +What do you find attractive that others might find unusual? +What is something you own that you have never used? +"If each person had a warning label, what would yours say?" +"If you were required to have a job of some type but you didn't need the money from it to survive, what job would you choose?" +What do you find is the most boring part of your life at the moment? +"If you knew you could live forever, how would you spend your days differently?" +Who is the luckiest person you know? +What recent event have you seen that restored your faith in humankind? +"How would you spend $1,000 to give the most happiness to the most number of people possible?" +"Do you, or did you in the past, have any strange habits?" \ No newline at end of file diff --git a/data/random_questions.csv b/data/random_questions.csv new file mode 100644 index 0000000..ab12eed --- /dev/null +++ b/data/random_questions.csv @@ -0,0 +1,497 @@ +What were you most afraid of when you were younger? Do you still have that fear? +"If you had to describe your current life as a movie, which movie would you choose?" +Do you have a nightmare travel story? +What did you learn from the last book you read? +What do you believe is the biggest thing that's currently holding you back from success? +"If you were to work at a circus, what job would you choose?" +What would someone who doesn't know you well be most surprised about? +What's the one thing that you seem to constantly lose? +Do you have a favorite brand? +What thing from childhood do you still enjoy to this day? +What do you like to do that's traditionally considered masculine? +What is something that you absolutely will not put up with? +"If you could remove something that exists in this world forever, what would it be?" +Do you have a bucket list? +"If you could change one thing about your family, what would it be?" +What do you wish you had spent more time doing when you were younger? +Do you consider yourself an introvert or an extrovert? +What do you like to do that's considered touristy? +Have you ever been punished for something you didn't do? +What is the quickest way for you to lose respect for someone? +"Of all the things you've bought in your life, what has been the worst purchase?" +How long did it take for you to come up with your current signature? +What smell always brings back some type of memory? +What's your current biggest worry? +Have you ever had a missed connection encounter? +What photo have you recently seen that spoke to you? +What's the last thing you did alone and you enjoyed? +What uncommon thing would you encourage everyone to try once? +What's one thing you think you should be doing more often? +What memory have you been thinking about a lot lately? +What is the next skill that you'd like to learn really well? +"If you could lock someone up and throw away the key, would you and if so, who would that be?" +How much damage could your best friend do to you if you ever had a falling out? +Do you remember what the first school report you wrote was about? +How well do you trust your gut feelings? +What's your opinion on social media? +What is something that you learned from simply watching a stranger? +What's a food you vow never to eat? +What the best thing that can happen in the first 5 minutes after waking up? +What do you find extremely difficult that most people find simple? +What obscure interest do you have? +Did you ever have a huge rival? Was the rivalry friendly or fierce? +What's your favorite room in your house and why? +What food do you have a love-hate relationship with? +What activity do you do where your mind wanders in thoughts the most? +What was the last meltdown that you witnessed? +What's something that was completely out-of-character that you did? +What do you think would be the worst thing about being famous? +What were you most afraid of when you were younger? Do you still have that fear? +What memory have you been thinking about a lot lately? +"If you had to pick a single word to describe this year so far, what would it be?" +What's the last thing you did alone and you enjoyed? +Have you ever been punished for something you didn't do? +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +What is something that has had a big impact on your that you observed from afar? +"When you want to escape from everyone, where do you go?" +What was a situation you thought would be terrible but you actually enjoyed it? +What's your opinion on cell phones? +What animal do you think best reflects your personality? +How many chances do you give a person before you write them off? +What holiday do you think more people should celebrate? +"If you had to walk away from one technology in your life, what would it be?" +"Of all the problems in the world, which one would you like to see solved first?" +What's your opinion on tipping? +Who is someone you recently thought about that you haven't seen or talked to in years? +What's the last thing that you broke and how did it happen? +What's the biggest wager you've ever made? +What technology advance are you looking forward to in the future? +How would a random stranger describe you? How accurate would that be? +What's the most recent interesting conversation you had? +What's some small thing you recently noticed? +Is it better to read books in electronic form or actually hold the book? +What's something that really happened to you but nobody would believe unless they were there? +Where was your secret hiding place as a child? +What recent event have you seen that restored your faith in humankind? +What is the most unique cloud you've ever seen in the sky? +Is there anyone that you're wondering about and if they're okay? +How well do you trust your gut feelings? +Would the world be better or worse if superheroes existed? +"If it was possible to transplant your brain to stay alive for another 100 years, would you?" +What type of exercise do you like most? +What are the top three characteristics you feel are important for a person? +What's an interesting fact that you recently learned? +What situation is sure to make you cry? +What's the story behind your greatest treasure? +What is the next big purchase you're currently saving for? +What's your definition of success? Has it changed over time? +What part of the human face do you look at when you talk to someone? +What's the best trick someone has ever played on you? +What is the strangest way you met one of your friends? +What would be the best thing about losing your hearing? +What is something that you don't mind waiting for? +What challenge would you like to see your best friend take on? +What do you consider the most difficult food to eat? +Do you think you're more like your mom or your dad? +Why haven't you done it yet? +What has been your 15 minutes of fame up to this point? +What do you spend too much time doing? +Do you think you're more like your mom or your dad? +What do you think is the most complex aspect about yourself? +What little thing instantly tells you that a person is good? +What piece of art has had a large impact on you? +"If you could change the length of each day to make it perfect for you, how many hours would it be?" +What is something you thought would be a great idea but was terrible when you actually did it? +Do you have a dream job in mind? What would it be? +How many chances do you give a person before you write them off? +What's something that really happened to you but nobody would believe unless they were there? +"What's something that you know you should start, but haven't?" +What food do you have a love-hate relationship with? +"If you had an extra hour a day that had to be allocated to one specific purpose, how would you use it?" +What's the last thing that you broke and how did it happen? +What part of the human face do you look at when you talk to someone? +What is something that you don't mind waiting for? +What's the story behind your favorite memento? +What do you think is your most creative ability? +"If you could only buy ten items at the grocery store to last the next week, what would you buy?" +How would you describe your sense of humor? Can you give an example? +What would your dream day look like? +Who have you met only one time that left a huge impression on you? +What do you consider to be the smartest thing you've ever done in your life so far? +"If you had to choose, would you rather be too hot or too cold?" +What is something that someone does that will immediately turn you off? +What thing have you been procrastinating about that you will begin doing today? +"If you had to ask yourself one question to get the most information out of you, what would that question be?" +What's your favorite room in your house and why? +"If you had to walk away from one technology in your life, what would it be?" +What will be your go-to story when you're old? +How do you think your reality differs from others you know? +What is the most recent life lesson you've learned? +"If you had the opportunity to look through someone's email without them knowing, would you?" +How much damage could your best friend do to you if you ever had a falling out? +Why? +What about you do you seem to get the most comments about? +Where's the next place you want to visit? +Can you describe your personal style? +How do you best like your ice-cream? +What has been your 15 minutes of fame up to this point? +How difficult is it for you to try new things? +What's the last thing that you gave up on? Are you happy or disappointed? +Have you evet taken a long shot that worked out? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +Do you have a bucket list? +What is your current philosophy about money? +"Of all the problems in the world, which one would you like to see solved first?" +What was a past passion that you can't believe you were so passionate about? +"If everyone here was a color, what color would each person be?" +What is the easiest way to bring a smile to your face? +How long do you think you could survive on your own? +What was a situation you thought would be terrible but you actually enjoyed it? +What's some small thing you recently noticed? +What sound will instantly melt your heart? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +What was the last thing that truly disappointed you? +What small stuff do you sweat even though you know you shouldn't? +"If you had to pick a single word to describe this year so far, what would it be?" +What are your favorite five words at the moment? +What's your biggest first world problem? +What part of the human face do you look at when you talk to someone? +What destination is at the top of your list to visit? +"If you could change the color of one thing, what would it be and why?" +Do you name inanimate objects? +"If you were to devote your life to art, what type of art would that be?" +What's your definition of success? Has it changed over time? +What do you consider the most difficult food to eat? +Do you have a moment in your life you wish you could relive? +"If you were required to have a job of some type but you didn't need the money from it to survive, what job would you choose?" +What's your favorite ritual? +What do you try to do to make the world a little better? +What activity do you do where your mind wanders in thoughts the most? +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +Where was your secret hiding place as a child? +Would you prefer to leave where your hometown and never come back or stay in your hometown and never be able to leave? +What were you most afraid of when you were younger? Do you still have that fear? +What smell always brings back some type of memory? +What's your opinion on cell phones? +What is the last big argument you go into and who was it with? +What is the next big purchase you're currently saving for? +What was the last big mistake you made? +What would you do if you saw a giraffe on the side of the road? +What do you wish you had learned five years before you did? +How do you think your reality differs from others you know? +What law have you broken the most in your life? +What's an interesting fact that you recently learned? +What is something that you like that your parents do? +What's the best comeback you've ever heard? +What do you think people pretend to like when they really don't? +What thing have you been procrastinating about that you will begin doing today? +What is something that you would really like to try again? +Do you think you were ever part of the popular crowd? +What is money to you? +What food combination do you eat that makes others cringe? +Does your family have any weird traditions? +"If you had the opportunity to look through someone's email without them knowing, would you?" +How many chances do you give a person before you write them off? +What is something that someone does that will immediately turn you off? +What country sounds interesting but you know very little about it? +How would a random stranger describe you? How accurate would that be? +Would you consider yourself decisive or indecisive? +Have you ever been punished for something you didn't do? +What's the strangest thing you've ever found? +What was the best thing you learned in the past year? +What were you most afraid of when you were younger? Do you still have that fear? +"Have you ever had a terrible house guest? If so, what happened?" +What's the next line to cross off your list? +What is the assumption that people make about you that's totally wrong? +What's the most difficult choice you were asked to make? +"What's your ""famous person"" story?" +What is your current philosophy about money? +What food combination do you eat that makes others cringe? +What is the strangest way you met one of your friends? +What situation is sure to make you cry? +Which of your past teachers would you like to sit down with and talk to today? +"What recent situation was nearly a disaster, but you were able to prevent it?" +What do you find attractive that others might find unusual? +How difficult is it for you to try new things? +How long does it take you to form an opinion about a person? +What question have people recently been constantly asking you? +What one thing would significantly make your life better? +How many things you currently own do you think you could throw away and not notice a difference in your life? +What have you recently realized you have been doing wrong? +What do you do in secret that you're proud of? +Do you have something special that picks you up when you feel down? What is it? +Do you believe there is only one other person in the world for you or many? +What recent event have you seen that restored your faith in humankind? +How far back can you trace your family tree? +What little thing do you do that you don't think many people notice? +What's something that you think you may have been the only person in the world to ever do? +What are some things don't you understand about the opposite sex? +What's your opinion on naps? +What is your opinion on social media? +What is something you predict will exist in 10 years that doesn't today? +How do you entertain yourself when you're bored? +"If you were handed $500 at this moment, how would you spend it?" +Where do you draw the line? +What's something that you believe you'll never be able to do well? +What have you found more helpful than you ever imagined it could be? +What's your favorite ritual? +Is there anyone that you're wondering about and if they're okay? +What do you see happening in your future? +What's the most difficult thing that you still do each day? +What's the most interesting conversation you eavesdropped on? +Why haven't you done it yet? +What's some small thing you recently noticed? +What is money to you? +Where was your secret hiding place as a child? +What's something that was completely out-of-character that you did? +What do you wish they would teach at school that they don't? +What's stopping you? +What is the most recent life lesson you've learned? +What's your close call story? +Do you consider yourself an introvert or an extrovert? +What's something that you know that few other people know? +What's your favorite thing to do when you're all alone? +What was the last thing that truly disappointed you? +Is there anything that most people find cute that creeps you out? +What would someone who doesn't know you well be most surprised about? +Have you been given any good advice lately? +What's the most interesting thing you have in your pockets right now? +What's the last thing that you gave up on? Are you happy or disappointed? +What do you wish you had learned five years before you did? +When are you most productive? +Where's the next place you want to visit? +What would you be really good at if it wasn't for one thing? +What bad decision did you make that actually turned out to be a good decision? +What's the most amount of money you've ever found? What was the situation? +What do you find attractive that others might find unusual? +What have you recently felt grateful for? +What memory have you been thinking about a lot lately? +How long did it take for you to come up with your current signature? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +Do you have a reoccurring dream? +How long do you think you could survive on your own? +"What's your ""famous person"" story?" +Do you believe there is only one other person in the world for you or many? +What's the most difficult thing that you still do each day? +"If you could change the color of one thing, what would it be and why?" +What's something others purchase that you simply can't understand why? +"If you had to change the language you speak, which one would you choose?" +"What's something that when you were learning it, you thought you'd never use it, but in reality, you ended up using it a lot?" +What do you think is the most useful skill to know? +What's some small thing you recently noticed? +What is the last encounter you had with a random stranger? +What's the last thing you did alone and you enjoyed? +What's your favorite daily routine? +Who have you met only one time that left a huge impression on you? +What do you consider the best decision you've made thus far in your life? +What is your current philosophy about money? +What recent event have you seen that restored your faith in humankind? +"If you could choose to be famous for something, what would it be?" +What do you see happening in your future? +"Have you ever had a terrible house guest? If so, what happened?" +"What does it mean to ""live a good life"" in your opinion?" +"If you could only buy ten items at the grocery store to last the next week, what would you buy?" +What have you recently realized you have been doing wrong? +"Without saying the category, what are your top five?" +What do you think is your most creative ability? +What do you like best about yourself? +Do you think you're more like your mom or your dad? +Would you consider yourself decisive or indecisive? +What do you find is the most boring part of your life at the moment? +How long do you think you could survive on your own? +Who was the last person you made happy and what did you do to do it? +Do you have a dream job in mind? What would it be? +Do you have a secret place? +What smell always brings back some type of memory? +What was the last big mistake you made? +"If you knew the winning lottery numbers, would you keep them to yourself or share with others?" +What's your favorite form of entertainment? +What type of exercise do you like most? +How do you approach life? +What's something uncomfortable but you feel everyone should experience at least once in their life? +Would you feel comfortable showing me the photos on your phone? +What is the oddest form of entertainment you enjoy? +What argument did you have that looking back on was absolutely ridiculous? +Where's the next place you want to visit? +What do you wish you had spent more time doing when you were younger? +"If you could change the color of one thing, what would it be and why?" +What are your favorite five words at the moment? +What is your opinion on tattoos? +What food combination do you eat that makes others cringe? +Are you a planner or more of a go with whatever happens when it comes to travel? +What's something that is common today that humans will be embarrassed about doing in 50 years? +Is there anyone that you're wondering about and if they're okay? +What's stopping you? +Where was your secret hiding place as a child? +"If you were going to start your own business, what would it be?" +What's the best part of rain? +Do you remember what the first school report you wrote was about? +How many chances do you give a person before you write them off? +What holiday do you think more people should celebrate? +What's a situation when you look back you should have gone ahead and done it? +What is something you thought would be a great idea but was terrible when you actually did it? +What will be your go-to story when you're old? +"If you could change one thing about your family, what would it be?" +What is the most unique cloud you've ever seen in the sky? +"When you're by yourself, what do you usually think about?" +What's something that you recently learned that everyone else already knew? +What is the funniest false thing you were able to convince others that's true? +Did you ever have a huge rival? Was the rivalry friendly or fierce? +What piece of art has had a large impact on you? +What types of things do you doodle? +What is socially acceptable today that you think won't be in 10 years? +"If you had the opportunity to look through someone's email without them knowing, would you?" +What do you love most about where you grew up? +Do you have any unusual fears? +What do you find extremely difficult that most people find simple? +What's your knowing just enough to be dangerous story? +"If everyone here was a color, what color would each person be?" +What can you talk about for hours? +What's the most amount of money you've ever found? What was the situation? +What is something that happened to you that you can't logically explain? +What's something that really happened to you but nobody would believe unless they were there? +What do you love most about where you grew up? +What is something immature you think your parents do? +Do you think you were ever part of the popular crowd? +What is something that someone does that will immediately turn you off? +What would be the best and worst part of being a cat in your opinion? +What's your knowing just enough to be dangerous story? +Is there any place that you have no desire to visit? Why? +"If you could assign one household chore to someone else, what would it be?" +How far back can you trace your family tree? +Do you believe that money can make you happy? +What was the last big mistake you made? +What foods did you used to like but don't anymore? +"If you had to pick a single word to describe this year so far, what would it be?" +What is the most recent life lesson you've learned? +"What have you done that you didn't like, but would you be willing to give it another shot?" +Do you consider yourself an introvert or an extrovert? +Do you name inanimate objects? +What's the embarrassing story that your parents used to tell others about you? +What's your story about breaking the law? +"If you had to change the language you speak, which one would you choose?" +What part of history do you find most interesting? +"Do you, or did you in the past, have any strange habits?" +What old school skill set do you have? +How often do you find yourself daydreaming? +What's the most spontaneous thing you've ever done? +How well do you think you understand yourself? +What's the last thing that you gave up on? Are you happy or disappointed? +What's your favorite thing to do when you're all alone? +What are you currently doubting in your life? +What is your current go-to song to dance to when nobody is around? +What is the last big argument you go into and who was it with? +What's something commonly do today that you think people will wonder why anyone would ever do that fifty years from now? +Has someone ever done a random act of kindness to you? +What do you think is the most useful skill to know? +What has been your biggest financial mistake? +Are you a planner or more of a go with whatever happens when it comes to travel? +What's the last thing that you broke and how did it happen? +Do you have any apps on your phone that you've never used? +What animal do you think best reflects your personality? +What's the most difficult choice you were asked to make? +What song currently speaks to you the most? +Who is the luckiest person you know? +What is something that you like that your parents do? +Do you have a bucket list? +"What's something that you know you should start, but haven't?" +"Do you, or did you in the past, have any strange habits?" +Would you feel comfortable showing me the photos on your phone? +What song currently speaks to you the most? +"If you had to choose, would you rather be too hot or too cold?" +"What does nobody want to talk about, but really should?" +"If you were to be famous for something, what would that be?" +"If you could remove something that exists in this world forever, what would it be?" +What little thing do you do that you don't think many people notice? +What do you find attractive that others might find unusual? +What is the most recent silly thing you did? +Would the world be better or worse if superheroes existed? +What is the most selfish thing you do that you're okay with? +What is your current favorite TV show? What was it 5 years ago? +What thing from childhood do you still enjoy to this day? +Do you have any unusual fears? +What is the most recent fact you learned that surprised you? +What part of the human face do you look at when you talk to someone? +What's your favorite thing to do when you're all alone? +How do you make decisions? +What would be the best thing about losing your hearing? +"If there are 100 people, how many would be more patient than you?" +What would someone who doesn't know you well be most surprised about? +What is something that you learned from simply watching a stranger? +What recent experience made you feel old? +What's something about you today that the old you would find surprising? +What do you consider the most difficult food to eat? +What question do you have that nobody has been able to give you a good answer to? +What's the best way you've found to calm yourself when you get stressed? +What assumption have you made that ended up being completely incorrect? +Do you have a special project you're currently working on? +"What's something that you thought you'd have already done by now, but haven't?" +What do you try to do to make the world a little better? +How do you entertain yourself when you're bored? +What do you secretly hoard? +What is it that motivates yourself the most? +Have you ever let someone else get punished for something you did? +"In emergency situations, how do you react?" +Do you have something special that picks you up when you feel down? What is it? +Have you ever been punished for something you didn't do? +Why? +"On any given day, what do you think you spend the most time doing?" +What weird thing do you do when nobody else is around? +Is there a part of your culture that you don't like? +What were you most afraid of when you were younger? Do you still have that fear? +What will be your go-to story when you're old? +"What doesn't exist, but should?" +Can you explain love? +How would you describe your sense of humor? Can you give an example? +At what age did you think you become an adult and when do you actually think you did? +"If each person had a warning label, what would yours say?" +What holiday do you think more people should celebrate? +What's the best compliment you ever received? +Can you name 5 things you wouldn't do for a million dollars? +"If you could assign one household chore to someone else, what would it be?" +"If you had an extra hour a day that had to be allocated to one specific purpose, how would you use it?" +What's the next line to cross off your list? +Do you consider yourself an introvert or an extrovert? +What's your close call story? +What uncommon thing would you like to see become more common? +What activity do you do where your mind wanders in thoughts the most? +What's something that you completely don't understand? +What's your favorite daily routine? +What bad decision did you make that actually turned out to be a good decision? +How many things you currently own do you think you could throw away and not notice a difference in your life? +What do you like best about yourself? +What's your opinion on social media? +What have you recently realized you have been doing wrong? +"If you had to walk away from one technology in your life, what would it be?" +What's something that you believe that most other people don't? +"What was your last ""ah-ha"" moment?" +What's an example of when you changed your mind? +What's the best way you've found to calm yourself when you get stressed? +How far back can you trace your family tree? +What's the way you find yourself procrastinating most? +Have you ever had or witnessed a drop the mic moment? +What food combination do you eat that makes others cringe? +What's the story behind why you replaced the last phone you had? +What's your opinion on naps? +What do you think would be the worst thing about being famous? +Have you ever been at an event that you think will one day be in history books? +How would you describe your sense of humor? Can you give an example? +Why haven't you done it yet? +"If someone were to sum you up with a phrase, what would that phrase be?" +What is the last big goal you accomplished? +What challenge would you like to see your best friend take on? +What's the most difficult thing about being you? +What are you currently doubting in your life? +"What was an experience you didn't think much about at the time, but it ultimately made you a stronger person?" +What is your biggest regret from the last month? +Do you name inanimate objects? +What do you find attractive that others might find unusual? +What is something you own that you have never used? +"If each person had a warning label, what would yours say?" +"If you were required to have a job of some type but you didn't need the money from it to survive, what job would you choose?" +What do you find is the most boring part of your life at the moment? +"If you knew you could live forever, how would you spend your days differently?" +Who is the luckiest person you know? +What recent event have you seen that restored your faith in humankind? +"How would you spend $1,000 to give the most happiness to the most number of people possible?" +"Do you, or did you in the past, have any strange habits?" \ No newline at end of file diff --git a/main.py b/main.py index 0aff7f5..0f096b9 100644 --- a/main.py +++ b/main.py @@ -4,7 +4,7 @@ import schedule from signalbot import SignalBot import logging -from actions import BeepCommand, QotdCommand, TriviaCommand, AsterCommand +from actions import BeepCommand, QotdCommand, AsterCommand from tasks.send_qotd import send_qotd logging.getLogger().setLevel(logging.INFO) @@ -25,7 +25,6 @@ def main(): bot.register(BeepCommand()) bot.register(QotdCommand()) - bot.register(TriviaCommand()) bot.register(AsterCommand()) bot.start() diff --git a/requirements.txt b/requirements.txt index 264d510..a9caefd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,6 @@ signalbot -chromedriver_autoinstaller requests selenium beautifulsoup4 schedule -trivia.py openai \ No newline at end of file