Skip to content

Commit

Permalink
Fixed db overwriting error and added auto-close
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrot committed Dec 15, 2020
1 parent 4f42df3 commit 30abe82
Show file tree
Hide file tree
Showing 15 changed files with 397 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
built
build
19 changes: 19 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"google"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
}
}
4 changes: 2 additions & 2 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/built/src/index.js",
"program": "${workspaceFolder}/build/src/index.js",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/built/**/*.js"
"${workspaceFolder}/build/**/*.js"
],
"sourceMaps": true
}
Expand Down
1 change: 1 addition & 0 deletions config/config-sample.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const config = {
owner_id: 'YOUR_TELEGRAM_ID',
spam_time: 5 * 60 * 1000, // time (in MS) in which user may send 5 messages
allow_private: false, // Allow / disallow option for staff to chat privately
auto_close_tickets: true,

// customize your language
language: {
Expand Down
Loading

0 comments on commit 30abe82

Please sign in to comment.