Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 4
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# ignore modules pulled in from npm
node_modules/

# rc-apps package output
dist/

# JetBrains IDEs
out/
.idea/
.idea_modules/

# macOS
.DS_Store
.AppleDouble
.LSOverride
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/dist
.*
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 80,
"useTabs": true,
"tabWidth": 4
}
19 changes: 19 additions & 0 deletions .rcappsconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"url": "http://localhost:3000",
"username": "",
"password": "",
"ignoredFiles": [
"**/README.md",
"**/package-lock.json",
"**/package.json",
"**/tslint.json",
"**/tsconfig.json",
"**/*.js",
"**/*.js.map",
"**/*.d.ts",
"**/*.spec.ts",
"**/*.test.ts",
"**/dist/**",
"**/.*"
]
}
11 changes: 11 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"recommendations": [
"EditorConfig.editorconfig",
"eamodio.gitlens",
"eg2.vscode-npm-script",
"wayou.vscode-todo-highlight",
"minhthai.vscode-todo-parser",
"ms-vscode.vscode-typescript-tslint-plugin",
"rbbit.typescript-hero"
]
}
12 changes: 12 additions & 0 deletions AppsSpamMonitorApp.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import {
IAppAccessors,
ILogger,
} from '@rocket.chat/apps-engine/definition/accessors';
import { App } from '@rocket.chat/apps-engine/definition/App';
import { IAppInfo } from '@rocket.chat/apps-engine/definition/metadata';

export class AppsSpamMonitorApp extends App {
constructor(info: IAppInfo, logger: ILogger, accessors: IAppAccessors) {
super(info, logger, accessors);
}
}
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# Apps.SpamMonitor
Automatically detects and flags spam from new users before it reaches Rocket.Chats community

project timeline
- [ ] Initialise the repo
- [ ] Add gate system with basic command usage of list users flagged and user flags
- [ ] Add cache system
- [ ] Add levels system with customise option and command
- [ ] Add admin level commands with UI
- [ ] Add admin functionalities (vouch, status,reset level)
- [ ] Add report option to see reports when scheduled
- [ ] Add AI admin commands
- [ ] Add the logo and revamp any UI issues and README!
16 changes: 16 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"id": "75069981-b100-489c-adec-895efcdbeb6c",
"version": "0.0.1",
"requiredApiVersion": "^1.44.0",
"iconFile": "icon.png",
"author": {
"name": "meet jain",
"homepage": "https://github.com/RocketChat/Apps.SpamMonitor",
"support": "https://github.com/RocketChat/Apps.SpamMonitor/issues"
},
"name": "Apps.SpamMonitor",
"nameSlug": "appsspammonitor",
"classFile": "AppsSpamMonitorApp.ts",
"description": "Automatically detects and flags spam from new users before it reaches Rocket.Chats community",
"implements": []
}
10 changes: 10 additions & 0 deletions eslint.config.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";

export default defineConfig([
{ files: ["**/*.{js,mjs,cjs,ts,mts,cts}"], plugins: { js }, extends: ["js/recommended"], languageOptions: { globals: globals.node }, ignores: ["node_modules/", "dist/", ".github/", "i18n/", ".*"] },
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
tseslint.configs.recommended,
]);
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading