filter all discord urls, add repo trigger

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>

git-svn-id: file:///srv/svn/repo/chen/trunk@28 32723744-9b23-0b4a-b1da-9b2e968f9461
This commit is contained in:
yakumo.izuru 2023-11-03 01:00:37 +00:00
parent 26d52f2098
commit 2b5624a80e
2 changed files with 8 additions and 1 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
config.ini

View File

@ -142,8 +142,14 @@ class ChenBot(ClientXMPP):
return
if "#nospoil" in msg["body"].lower():
return
if "cdn.discordapp.com" in msg["body"].lower():
if "discord.com" in msg["body"].lower():
msg.reply("Ew, discord! :<\n").send()
if "discord.gg" in msg["body"].lower():
msg.reply("Do you really want to invite someone to Hell? [meow in disarray]\n").send()
if "cdn.discordapp.com" in msg["body"].lower():
msg.reply("Use a proper media host nya\n").send()
if "!repo" in msg["body"].lower():
msg.reply("https://git.chaotic.ninja/yakumo.izuru/chen\n").send()
for u in urls:
if u in self.messages[sender]["links"]:
continue