-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
25,553 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,21 @@ | ||
const scam = require("../scam.json") | ||
const teamServerClient = new WebhookClient({ id: "1162036161842258041", token: "EXZ1MzE29tI7KiPt-dTXUNkO54TPWIw7BDYHsvyf5z1JKbSgu_POjKPoYt7RdNPL8BXl" }); | ||
|
||
module.exports = { | ||
name: "messageCreate", | ||
async execute(message, client, config) { | ||
if (message.channelId === BigInt(config.gh_feed)) { | ||
async execute(message, client, config,) { | ||
if (message.channelId === config.gh_feed) { | ||
message.crosspost(); | ||
} | ||
for(var i = 0; i < scam.length; i++) { | ||
if(message.content.toLowerCase().includes(scam[i].toLowerCase())) { | ||
message.delete(); | ||
teamServerClient.send({ | ||
content: message.author.username + ' hat folgende Nachricht gesendet die Automatisch gelöscht wurde "' + message.content + '"', | ||
}); | ||
message.author.send("In deiner letzen Nachricht wurde ein Scam Link automatisch endeckt. Folgedesen wurde deine Nachricht gelöscht und du für eine Stunde getimeoutet. Das weitere vorgehen endscheidet das Team.") | ||
message.guild.members.cache.find(member => member.id === message.author.id) | ||
} | ||
} | ||
}, | ||
}; |
Oops, something went wrong.