codingdefined / codingdefined/DiscordSpamRemoval
Have you tested it since you added all those mods?
Open
- 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.