コミット
8ad17bbaa0
2
main.py
2
main.py
|
@ -135,6 +135,8 @@ class ChenBot(ClientXMPP):
|
||||||
async def parse_urls(self, msg, urls, sender, mtype):
|
async def parse_urls(self, msg, urls, sender, mtype):
|
||||||
if "nsfw" in msg["body"].lower():
|
if "nsfw" in msg["body"].lower():
|
||||||
return
|
return
|
||||||
|
if "#nospoil" in msg["body"].lower():
|
||||||
|
return
|
||||||
for u in urls:
|
for u in urls:
|
||||||
if u in self.messages[sender]["links"]:
|
if u in self.messages[sender]["links"]:
|
||||||
continue
|
continue
|
||||||
|
|
読み込み中…
新しいイシューから参照