Made server filter

This commit is contained in:
2023-05-02 22:22:39 +02:00
parent ffafe0194c
commit 97ba8868d8
2 changed files with 30 additions and 7 deletions
+7 -4
View File
@@ -34,10 +34,13 @@ class Compare(commands.Cog):
for p in listofplayerids:
stats = self.getstats(p, weaponid, weaponname)
listofstats.append(stats)
divider = str("\n --------------- \n")
botmessage = divider.join(listofstats)
await ctx.send(f'```{botmessage}```')
if ("".join(listofstats) != ""):
divider = str("\n --------------- \n")
botmessage = divider.join(listofstats)
await ctx.send(f'```{botmessage}```')
else:
botmessage = "No existing player found in the given list"
await ctx.send(f'```{botmessage}```')
def getplayerid(self, playername):
playerid = "None"