iterate over blacklist (fix)

This commit is contained in:
SosoM1k0r31z31 2020-11-09 21:44:16 +03:00
parent 1a5490395a
commit 5364e9596c
1 changed files with 4 additions and 3 deletions

7
bot.py
View File

@ -627,10 +627,11 @@ async def iplocation(ctx, ip):
async def img(ctx, *, term):
# anti ewmx
blacklist = ['genshin', 'amber', 'bikini', 'impact']
for t in blacklist:
if term.lower() in blacklist:
await ctx.send("我真的很喜欢Genshin Impact 这是一个因喜剧效果而产生的模因。我不支持 Glorious Leader Xi Jinping 或他作为总统的举动。我现在将继续使用随机术语来使这个变得有趣。\n大块头大块头大男孩东方传说习近平 1989 Massacre 全能大主习近平主席永恒 The Xinjiang Uyghur Autonomous Region 赞美加贝·纽维尔勋爵为反击和保卫古人 Kung-Flu 成吉思汗没做错事,习近平国王绝杀了传说中的故事 The Great Leap Forward")
return
if t in term.lower():
await ctx.send("我真的很喜欢Genshin Impact 这是一个因喜剧效果而产生的模因。我不支持 Glorious Leader Xi Jinping 或他作为总统的举动。我现在将继续使用随机术语来使这个变得有趣。\n大块头大块头大男孩东方传说习近平 1989 Massacre 全能大主习近平主席永恒 The Xinjiang Uyghur Autonomous Region 赞美加贝·纽维尔勋爵为反击和保卫古人 Kung-Flu 成吉思汗没做错事,习近平国王绝杀了传说中的故事 The Great Leap Forward")
return
# normal use case
a = await ctx.send("Contacting API <:load:757718569978036314>")