From 2008cf55525351d65eade19e36e5e81a85af2dc3 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Sun, 7 Jun 2020 00:30:01 +0100 Subject: [PATCH] Added more Eightball responses Trying to link subdirectories in python --- cogs/FunCommands.py | 8 ++++++-- eightball.txt | 4 +++- images/kissing.txt | 26 ++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 images/kissing.txt diff --git a/cogs/FunCommands.py b/cogs/FunCommands.py index 8a691bc2..66344fb4 100644 --- a/cogs/FunCommands.py +++ b/cogs/FunCommands.py @@ -1,6 +1,7 @@ import asyncio import datetime import random +from pathlib import PureWindowsPath import discord from discord.ext import commands @@ -90,7 +91,8 @@ class Fun(commands.Cog): f"You're... You're SHREKTACULAR :heart_eyes: :flushed: :heart_eyes: {target.mention}", f"{target.mention} Your beauty renders me speechless... :heart_eyes: :heart_eyes:" f"Your taste in music is impeccable {target.mention}", - f"{target.mention}I can't stop thinking about you :see_no_evil: :see_no_evil:" + f"{target.mention}I can't stop thinking about you :see_no_evil: :see_no_evil:", + f"" ] # Sending out a random compliment from the array "responses" @@ -102,10 +104,12 @@ class Fun(commands.Cog): channels = ["bot-commands", "picto-chat", "general"] + try: if str(ctx.channel) in channels: - with open('kissing.txt') as file: + path = PureWindowsPath('C:/Users/sgoud/PycharmProjects/EnsoBot/images/kissing.txt') + with open(str(path)) as file: kissing_array = file.readlines() # set member as the author diff --git a/eightball.txt b/eightball.txt index 0ccb73d6..de8e83df 100644 --- a/eightball.txt +++ b/eightball.txt @@ -50,4 +50,6 @@ “Hamothy has used his godlike like powers to align the stars for you it must be true“ “Gabriel appears out of thin air and smites you“ “Yes yes yes!!!“ -"niKki sAys gO gEts tHeM HorSie" \ No newline at end of file +"niKki sAys gO gEts tHeM HorSie" +"<:Lukas:718940468137951253>" +"McRib has not deemed you worthy of a response" \ No newline at end of file diff --git a/images/kissing.txt b/images/kissing.txt new file mode 100644 index 00000000..39cea832 --- /dev/null +++ b/images/kissing.txt @@ -0,0 +1,26 @@ +https://media.giphy.com/media/G3va31oEEnIkM/giphy.gif +https://media.giphy.com/media/vHISzfc8dcVG0/giphy.gif +https://media.giphy.com/media/jLBwuKcJQcCpq/giphy.gif +https://media.giphy.com/media/Gj8bn4pgTocog/giphy.gif +https://media.giphy.com/media/TkDX9bkIROf8k/giphy.gif +https://media.giphy.com/media/bm2O3nXTcKJeU/giphy.gif +https://media.giphy.com/media/QGc8RgRvMonFm/giphy.gif +https://media.giphy.com/media/pcui5ohH3X96M/giphy.gif +https://media.giphy.com/media/nyGFcsP0kAobm/giphy.gif +https://media.giphy.com/media/dP8ONh1mN8YWQ/giphy.gif +https://media.giphy.com/media/wOtkVwroA6yzK/giphy.gif +https://media.giphy.com/media/zkppEMFvRX5FC/giphy.gif +https://media.giphy.com/media/ZL0G3c9BDX9ja/giphy.gif +https://media.giphy.com/media/12VXIxKaIEarL2/giphy.gif +https://media.giphy.com/media/hnNyVPIXgLdle/giphy.gif +https://media.giphy.com/media/iseq9MQgxo4aQ/giphy.gif +https://media.giphy.com/media/xdXIoBwYnBC0w/giphy.gif +https://cdn.discordapp.com/attachments/716823227409760337/718539083881644062/anime-kissin-7.gif +https://media.giphy.com/media/11rWoZNpAKw8w/giphy.gif +https://media.giphy.com/media/gy84qPkNTkgU/giphy.gif +https://media.giphy.com/media/fHtb1JPbfph72/giphy.gif +https://media.giphy.com/media/w2OMjUGV7mCSQ/giphy.gif +https://media.giphy.com/media/7pzeSkzilmVZS/giphy.gif +https://media.discordapp.net/attachments/716823227409760337/718597550671921213/tumblr_n5r2spwEYQ1rygh4xo1_500.gif +https://media.discordapp.net/attachments/716823227409760337/718598000406167652/tumblr_mwo343m7tK1sv72vno1_500.gif +https://cdn.discordapp.com/attachments/716823227409760337/718598371056812102/tumblr_n5h2m2u6SW1sn5ot7o2_500.gif \ No newline at end of file