[Audio] Add [p]sing (#2067)

* port [p]sing

* [p]sing in alphabetical order

what even is an alphabet
This commit is contained in:
zephyrkul 2018-09-03 21:23:50 -06:00 committed by Toby Harradine
parent e77cfff892
commit e83beeef34

View File

@ -5,6 +5,7 @@ import discord
import heapq import heapq
import lavalink import lavalink
import math import math
import random
import re import re
import time import time
import redbot.core import redbot.core
@ -1462,6 +1463,21 @@ class Audio:
) )
await self._embed_msg(ctx, "Shuffle songs: {}.".format(shuffle)) await self._embed_msg(ctx, "Shuffle songs: {}.".format(shuffle))
@commands.command()
@commands.guild_only()
async def sing(self, ctx):
"""Makes Red sing one of her songs"""
ids = (
"zGTkAVsrfg8",
"cGMWL8cOeAU",
"vFrjMq4aL-g",
"WROI5WYBU_A",
"41tIUr_ex3g",
"f9O2Rjn1azc",
)
url = f"https://www.youtube.com/watch?v={random.choice(ids)}"
await ctx.invoke(self.play, query=url)
@commands.command(aliases=["forceskip", "fs"]) @commands.command(aliases=["forceskip", "fs"])
@commands.guild_only() @commands.guild_only()
async def skip(self, ctx): async def skip(self, ctx):