From d796c4ba8afe3be3db845e1ca14482137d2bf721 Mon Sep 17 00:00:00 2001 From: RohanRadia Date: Thu, 4 Apr 2019 00:35:44 +0100 Subject: Created conversationstarters and created a convo_starter command easter --- conversationstarters.py | 50 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 conversationstarters.py (limited to 'conversationstarters.py') diff --git a/conversationstarters.py b/conversationstarters.py new file mode 100644 index 00000000..7c1fe860 --- /dev/null +++ b/conversationstarters.py @@ -0,0 +1,50 @@ +import logging +import random +from pathlib import Path + +from discord.ext import commands + +log = logging.getLogger(__name__) + +starters = [ + 'What is your favourite Easter candy or treat?', + 'What is your earliest memory of Easter?', + 'What is the title of the last book you read?', + 'What is better: Milk, Dark or White chocolate?', + 'What is your favourite holiday?', + 'If you could have any superpower, what would it be?', + 'Name one thing you like about a person to your right.', + 'If you could be anyone else for one day, who would it be?', + 'What Easter tradition do you enjoy most?', + "What is the best gift you've been given?", + 'Name one famous person you would like to have at your easter dinner.', + 'What was the last movie you saw in a cinema?', + 'What is your favourite food?', + 'If you could travel anywhere in the world, where would you go?', + 'Tell us 5 things you do well.', + 'What is your favourite place that you have visited?', + 'What is your favourite color?', + 'If you had $100 bill in your Easter Basket, what would you do with it?', + 'What would you do if you know you could succeed at anything you chose to do?', + 'If you could take only three things from your house, what would they be?' +] + + +class ConvoStarters(commands.Cog): + """A cog which posts easter conversation starters""" + + def __init__(self, bot): + self.bot = bot + + @commands.command(aliases=('conversation_starters', 'convo_starters')) + async def convo_starter(self, ctx): + """Responds with a random conversation starter""" + + await ctx.send(f"{random.choice(starters)}") + + +def setup(bot): + """ConversationStarters Cog load.""" + + bot.add_cog(ConvoStarters(bot)) + log.info("ConversationStarters cog loaded") -- cgit v1.2.3