From e83beeef3431a5e7c106c8a950544c07d7eefd74 Mon Sep 17 00:00:00 2001 From: zephyrkul Date: Mon, 3 Sep 2018 21:23:50 -0600 Subject: [PATCH] [Audio] Add [p]sing (#2067) * port [p]sing * [p]sing in alphabetical order what even is an alphabet --- redbot/cogs/audio/audio.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/redbot/cogs/audio/audio.py b/redbot/cogs/audio/audio.py index a5fa35cba..a36cbcb5c 100644 --- a/redbot/cogs/audio/audio.py +++ b/redbot/cogs/audio/audio.py @@ -5,6 +5,7 @@ import discord import heapq import lavalink import math +import random import re import time import redbot.core @@ -1462,6 +1463,21 @@ class Audio: ) 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.guild_only() async def skip(self, ctx):