filters.py: use f-string for listing levenshtein words and show if word is whitelisted
@@ -88,7 +88,7 @@ class Filter(commands.Cog):
if self.bot.levenshteinfilter.filter[kind]:
value = ""
for word, threshold in self.bot.levenshteinfilter.filter[kind]:
- value += word + " with threshold " + str(threshold) + "\n"
+ value += f"{word} with threshold {threshold}{' - whitelisted' if word in self.bot.levenshteinfilter.whitelist else ''} \n"
embed.add_field(name=kind, value=value)
if embed:
await ctx.author.send(embed=embed)
