remove redundant if in setfm
This commit is contained in:
parent
94f43336f7
commit
7be4fee669
1 changed files with 8 additions and 7 deletions
|
|
@ -10,7 +10,8 @@ def setup(bot: bot.Bot):
|
|||
if not username:
|
||||
await ctx.send(u.error_msg("Please provide your Last.fm username.\n\
|
||||
usage: `/fm <your last.fm username>`"))
|
||||
else:
|
||||
return
|
||||
|
||||
try:
|
||||
await bot.set_lastfm(ctx.author.id, username)
|
||||
await ctx.send(u.good_msg(f"Your Last.fm user has been set to **{username}**!"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue