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:
parent
26d52f2098
commit
2b5624a80e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
config.ini
|
8
main.py
8
main.py
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user