minor code refactoring

This commit is contained in:
s-prechtl 2022-03-17 14:34:30 +01:00
parent 36a8795245
commit 169599dff5
6 changed files with 56 additions and 54 deletions

View file

@ -4,6 +4,7 @@ import discord
import riotwatcher
import APICommands.Command
from APICommands.Command import getSummonerNameFromMessage
class SummonerLevel(APICommands.Command.Command, ABC):
@ -17,7 +18,7 @@ class SummonerLevel(APICommands.Command.Command, ABC):
async def execute(self, message: discord.Message):
sumname = ""
try:
sumname = APICommands.Command.getSummonerNameFromMessage(message)
sumname = getSummonerNameFromMessage(message)
except:
await self.usage(message)
if sumname != "":