Skip to content

Commit 9f59eb4

Browse files
authored
Merge pull request #204 from skymen/master
Whitelist for blog posts
2 parents d6ab87f + 018a912 commit 9f59eb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bot-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,8 @@ export const checkBlogPosts = async (client) => {
188188

189189
const isScirra = scirraStaff.includes(author);
190190

191-
if (postId !== newPostId && newTitle !== "") {
191+
// prevent posts that are not from scirra to prevent spam
192+
if (postId !== newPostId && newTitle !== "" && isScirra) {
192193
const sent = await client.channels.cache
193194
.get(
194195
isScirra

0 commit comments

Comments
 (0)