mirror of
https://bitbucket.org/SosoM1k0r31z31/funny-cat.git
synced 2025-04-11 22:55:46 +02:00
disable genshin blacklist temporarily
This commit is contained in:
parent
a75e6e08ee
commit
3336d1f9be
7
bot.py
7
bot.py
@ -626,12 +626,13 @@ async def iplocation(ctx, ip):
|
||||
@bot.command()
|
||||
async def img(ctx, *, term):
|
||||
# anti ewmx
|
||||
blacklist = ['genshin', 'amber', 'impact']
|
||||
# remove quotes if ewmx comes back
|
||||
"""blacklist = ['genshin', 'amber', 'impact']
|
||||
for t in blacklist:
|
||||
|
||||
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
|
||||
return"""
|
||||
|
||||
# normal use case
|
||||
a = await ctx.send("Contacting API <:load:757718569978036314>")
|
||||
@ -1516,7 +1517,7 @@ async def character(ctx, *, char):
|
||||
@bot.command()
|
||||
async def animesearch(ctx, *, anime):
|
||||
|
||||
url = f"https://api.jikan.moe/v3/search/character?q={char}&page=1"
|
||||
url = f"https://api.jikan.moe/v3/search/character?q={anime}&page=1"
|
||||
headers = {'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0'}
|
||||
|
||||
r = requests.get(url, headers=headers)
|
||||
|
Loading…
x
Reference in New Issue
Block a user