From 02271d42e582adae51d8a7aa90c43b11457fde07 Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi <ste.pigozzi@gmail.com>
Date: Tue, 31 Jul 2018 23:42:51 +0200
Subject: [PATCH] whelp

---
 discordbot.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/discordbot.py b/discordbot.py
index 8e9ec3f3..fce153f0 100644
--- a/discordbot.py
+++ b/discordbot.py
@@ -616,10 +616,10 @@ async def queue_play_next_video():
             await loop.run_in_executor(executor, session.commit)
             await loop.run_in_executor(executor, session.close)
         await client.change_presence(game=discord.Game(name=now_playing.plain_text(), type=2))
-        if "despacito" in now_playing.filename.lower():
+        if "despacito" in now_playing.file.lower():
             await client.send_message(client.get_channel(config["Discord"]["main_channel"]),
                                       f":arrow_forward: this is so sad. alexa play {str(now_playing)}")
-        elif "faded" in now_playing.filename.lower():
+        elif "faded" in now_playing.file.lower():
             await client.send_message(client.get_channel(config["Discord"]["main_channel"]),
                                       f":arrow_forward: Basta Garf, lasciami ascoltare {str(now_playing)}")
         else: