misc/rm
This commit is contained in:
19
cogs/sing.py
19
cogs/sing.py
@ -46,9 +46,6 @@ class Sing(commands.Cog):
|
||||
"""
|
||||
try:
|
||||
with ctx.channel.typing():
|
||||
interaction: bool = isinstance(
|
||||
ctx, discord.ext.bridge.BridgeApplicationContext
|
||||
)
|
||||
activity: Optional[discord.Activity] = None
|
||||
if not song:
|
||||
if not ctx.author.activities:
|
||||
@ -62,11 +59,11 @@ class Sing(commands.Cog):
|
||||
return await ctx.respond(
|
||||
"**Error**: No song specified, no activity found to read."
|
||||
)
|
||||
|
||||
if interaction:
|
||||
await ctx.respond(
|
||||
"*Searching...*"
|
||||
) # Must respond to interactions within 3 seconds, per Discord
|
||||
|
||||
await ctx.respond(
|
||||
"*Searching...*",
|
||||
ephemeral=True
|
||||
) # Must respond to interactions within 3 seconds, per Discord
|
||||
|
||||
parsed = self.utility.parse_song_input(song, activity)
|
||||
|
||||
@ -112,15 +109,11 @@ class Sing(commands.Cog):
|
||||
f"**{search_result_song}** by **{search_result_artist}**\n-# {short_lyrics}"
|
||||
)
|
||||
|
||||
c: int = 0
|
||||
out_messages: list = []
|
||||
footer: str = "" # Placeholder
|
||||
for section in search_result_wrapped:
|
||||
c += 1
|
||||
for c, section in enumerate(search_result_wrapped):
|
||||
if c == len(search_result_wrapped):
|
||||
footer = f"`Found on: {search_result_src}`"
|
||||
# if ctx.guild.id == 1145182936002482196:
|
||||
# section = section.upper()
|
||||
section = regex.sub(r"\p{Vert_Space}", " / ", section.strip())
|
||||
msg: str = f"**{search_result_song}** by **{search_result_artist}**\n-# {section}\n{footer}"
|
||||
if c > 1:
|
||||
|
Reference in New Issue
Block a user