codingdefined / codingdefined/DiscordSpamRemoval

Have you tested it since you added all those mods?

Open
#1 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Only the $last command works ...

You are handling vars as arrays and arrays as vars...

Wont delete, or do anything, the IF are never met.

Also when you removed the checks for the steemit / busy you still check if there is a @ and it crashes.

Easy fix:

```
function checkPosts(event) {
var is_post = event.message.content.match(/\/@/gi)
if(is_post === null) {
return;
}```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.