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,7 +4,7 @@ import discord
import riotwatcher
import APICommands.Command
from iLeague import intTryParse, championIdToName, getChampionsJSON
from APICommands.Command import intTryParse, championIdToName, getChampionsJSON, getSummonerNameFromMessage
class HighestMastery(APICommands.Command.Command, ABC):
@ -20,7 +20,7 @@ class HighestMastery(APICommands.Command.Command, ABC):
firstIsInt = intTryParse(message.content.split(" ")[1])[1]
try:
sumname = APICommands.Command.getSummonerNameFromMessage(message, 2)
sumname = getSummonerNameFromMessage(message, 2)
except:
await self.usage(message)
if sumname != "":