Skip to content

Commit

Permalink
lnp inside of summon cmd
Browse files Browse the repository at this point in the history
Sets lnp inside the summon command for various instances when it's needed.
A quality of life change surely.
  • Loading branch information
BabyBoySnow committed Mar 7, 2024
1 parent df97f58 commit 611f4c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -3802,7 +3802,7 @@ async def cmd_np(
)

async def cmd_summon(
self, guild: discord.Guild, author: discord.Member
self, guild: discord.Guild, author: discord.Member, message: discord.Message
) -> CommandResponse:
"""
Usage:
Expand Down Expand Up @@ -3872,6 +3872,8 @@ async def cmd_summon(
author.voice.channel.name,
)

self.server_data[guild.id].last_np_msg = message

return Response(
self.str.get("cmd-summon-reply", "Connected to `{0.name}`").format(
author.voice.channel
Expand Down

0 comments on commit 611f4c0

Please sign in to comment.