diff options
| author | 2019-04-02 21:53:18 +0530 | |
|---|---|---|
| committer | 2019-04-02 21:53:18 +0530 | |
| commit | 1d37b848c655af1b17511d5b4b7d78fe3888e0ae (patch) | |
| tree | 51c3ed8cefcddb75c9bd1dcf8aceabf8e0e840be | |
| parent | random selection of youtuber insted of hardcoding google (diff) | |
sending only one message insted of 2 (removed the embed)
| -rw-r--r-- | bot/seasons/easter/april_fools_vids.py | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/bot/seasons/easter/april_fools_vids.py b/bot/seasons/easter/april_fools_vids.py index b71beae2..553b2a78 100644 --- a/bot/seasons/easter/april_fools_vids.py +++ b/bot/seasons/easter/april_fools_vids.py @@ -21,7 +21,7 @@ class AprilFoolVideos(commands.Cog):      @staticmethod      def load_json():          """A function to load json data.""" -        p = Path('bot/resources/april_fools_vids.json') +        p = Path('bot', 'resources', 'easter', 'april_fools_vids.json')          with p.open() as json_file:              all_vids = load(json_file)          return all_vids @@ -37,8 +37,7 @@ class AprilFoolVideos(commands.Cog):          embed.colour = Colours.yellow          embed.description = f'Checkout this april fools video by {random_youtuber}'          embed.url = random_vid['link'] -        await ctx.send(embed=embed) -        await ctx.send(random_vid["link"]) +        await ctx.send(f"Check out this April Fools' video by {random_youtuber}.\n\n{random_vid['link']}")  def setup(bot): | 
