1
This commit is contained in:
7
main.py
7
main.py
@@ -6,6 +6,7 @@ import youtube_dl
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
|
||||
#########################################################################################################################
|
||||
|
||||
# MMMMMMMM MMMMMMMMUUUUUUUU UUUUUUUU SSSSSSSSSSSSSSS IIIIIIIIII CCCCCCCCCCCCC
|
||||
@@ -105,9 +106,12 @@ class YTDLSource(discord.PCMVolumeTransformer):
|
||||
filename = data['url'] if stream else ytdl.prepare_filename(data)
|
||||
return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_super_bass_options), data=data)
|
||||
|
||||
|
||||
|
||||
class Music(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
self.now = ""
|
||||
|
||||
@commands.command()
|
||||
async def join(self, ctx, *, channel: discord.VoiceChannel):
|
||||
@@ -122,6 +126,7 @@ class Music(commands.Cog):
|
||||
ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
|
||||
|
||||
await ctx.send('Now playing: {}'.format(player.title))
|
||||
self.now = player.title
|
||||
|
||||
@commands.command()
|
||||
async def bassboost(self, ctx, *, url):
|
||||
@@ -227,4 +232,4 @@ async def on_ready():
|
||||
|
||||
bot.add_cog(Music(bot))
|
||||
bot.add_cog(Answers(bot))
|
||||
bot.run(token)
|
||||
bot.run('ODI5OTk2MzM3NjEyNzE4MTEw.YHAQUw.UoEzhz7fVG3Wqfr2IhrE14oNqEE')
|
||||
|
||||
Reference in New Issue
Block a user