Removed old play function

This commit is contained in:
Louis Lacoste 2022-11-18 14:55:26 +01:00
parent eb49b39abc
commit db44972194

16
main.py
View file

@ -102,22 +102,6 @@ async def restart(ctx):
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.playing, name='PolaroBot redémarre...'))
restart_bot()
@bot.command(aliases=['play_music'], pass_context=True)
async def play(ctx, url: str):
"""Playing a song"""
if is_a_youtube_url(url):
embedPlaying = discord.Embed(
title="🤖PolaroBot joue", description=f"Je sais pas encore jouer de musique mais tkt frère, vla ton URL mon reuf : {url}")
embedPlaying.set_image(url=random_playing_gif())
else:
embedPlaying = discord.Embed(title="🤖PolaroBot veut casser ta gueule",
description=f"FREROT ?! C'EST QUOI {url} ? C'EST DE LA MERDE 💩💩💩 ! ")
embedPlaying.set_image(
url="https://media.tenor.com/wQH1Lm24wLwAAAAM/de-la-merde-jean.gif")
await ctx.send(embed=embedPlaying)
@bot.command(name='play_song', help='To play song')
async def play(ctx,url):
try :