1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
{
"name": "bush-bot",
"version": "3.0.0",
"description": "A multipurpose moderation bot developed for Moulberry's Bush.",
"main": "dist/src/bot.js",
"type": "module",
"repository": "https://github.com/NotEnoughUpdates/bush-bot-3.0",
"author": "IRONM00N#0001 (@IRONM00N)",
"contributors": [
"Tyman#5998 (@TymanWasTaken)",
"TrashCan#8913 (@TrashCan69420)",
"tricked#3777 (@Tricked-dev)",
"rioho#0001 (@riohorealhk)",
"Proudmuslim#2900 (@proudmuslim-dev)",
"katherine🌺#0668 (@Lisenaaaa)",
"jani270#0119 (@jani270)",
"pjones123#6025 (@pjones123)",
"Angry_Pineapple#6926 (@Angry-Pineapple3121)",
"EthanDevelops#5366 (@EthanDevelops)"
],
"license": "CC-BY-NC-SA-4.0",
"imports": {
"#root": {
"default/*": "./*"
},
"#lib": {
"default": "./src/lib/index.js"
}
},
"scripts": {
"build:esbuild": "yarn rimraf dist && yarn esbuild --sourcemap=inline --outdir=dist --platform=node --target=es2020 --format=esm --log-level=warning src/**/*.ts",
"build:tsc": "yarn rimraf dist && yarn tsc",
"build:tsc:no-emit": "yarn rimraf dist && yarn tsc --noEmit",
"_start": "yarn build:esbuild && node --experimental-json-modules --no-warnings dist/src/bot.js",
"start": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
"dev": "yarn build:tsc && node --experimental-json-modules --no-warnings dist/src/bot.js",
"test": "yarn lint && yarn tsc --noEmit",
"format": "yarn prettier . --write",
"lint": "yarn eslint --ext js,jsx,ts,tsx src",
"format:check": "yarn prettier . --check",
"upgrade": "yarn rimraf yarn.lock && yarn cache clean && yarn install && yarn up && yarn up -R && yarn set version latest",
"upgrade:sdk": "yarn dlx @yarnpkg/sdks vscode",
"upgrade:manual": "yarn add @notenoughupdates/discord.js-minesweeper @notenoughupdates/humanize-duration @notenoughupdates/wolfram-alpha-api @sentry/node @sentry/tracing canvas chalk discord-akairo@npm:@notenoughupdates/discord-akairo@dev discord.js@npm:@notenoughupdates/discord.js@dev events-intercept fuse.js got lodash mathjs moment nanoid node-os-utils numeral pg pg-hstore prettier@prettier/prettier pretty-bytes rimraf sequelize simplify-number source-map-support tinycolor2 tslib typescript vm2 && yarn add --dev @types/express @types/lodash @types/node @types/node-os-utils @types/numeral @types/tinycolor2 @types/validator @typescript-eslint/eslint-plugin @typescript-eslint/parser discord-api-types@0.24.0 eslint eslint-config-prettier",
"beta": "git push && git checkout beta && git merge master && git push && git checkout master",
"deploy:beta": "wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs beta\"",
"deploy:production": "wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs production\"",
"deploy:all": "yarn beta && wsl /bin/bash -c \"pm2 deploy ecosystem.config.cjs production && pm2 deploy ecosystem.config.cjs beta\""
},
"dependencies": {
"@notenoughupdates/discord.js-minesweeper": "^1.0.8",
"@notenoughupdates/events-intercept": "^3.0.1",
"@notenoughupdates/humanize-duration": "^4.0.1",
"@notenoughupdates/wolfram-alpha-api": "^1.0.1",
"@sentry/node": "^6.15.0",
"@sentry/tracing": "^6.15.0",
"canvas": "^2.8.0",
"chalk": "^4.1.2",
"discord-akairo": "npm:@notenoughupdates/discord-akairo@dev",
"discord.js": "npm:@notenoughupdates/discord.js@dev",
"events-intercept": "^2.0.0",
"fuse.js": "^6.4.6",
"got": "^11.8.3",
"lodash": "^4.17.21",
"mathjs": "^10.0.0",
"moment": "^2.29.1",
"nanoid": "^3.1.30",
"node-os-utils": "^1.3.5",
"numeral": "^2.0.6",
"pg": "^8.7.1",
"pg-hstore": "^2.3.4",
"prettier": "prettier/prettier",
"pretty-bytes": "^5.6.0",
"rimraf": "^3.0.2",
"sequelize": "^6.12.0-alpha.1",
"simplify-number": "^1.0.0",
"source-map-support": "^0.5.21",
"tinycolor2": "^1.4.2",
"tslib": "^2.3.1",
"typescript": "^4.5.2",
"vm2": "^3.9.5"
},
"devDependencies": {
"@types/express": "^4.17.13",
"@types/lodash": "^4.14.177",
"@types/node": "^16.11.9",
"@types/node-os-utils": "^1.2.0",
"@types/numeral": "^2.0.2",
"@types/tinycolor2": "^1.4.3",
"@types/validator": "^13.7.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"discord-api-types": "0.24.0",
"eslint": "^8.3.0",
"eslint-config-prettier": "^8.3.0"
},
"eslintConfig": {
"env": {
"es2021": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": [
"dist"
],
"rules": {
"no-return-await": "off",
"@typescript-eslint/no-empty-interface": "warn",
"no-mixed-spaces-and-tabs": "off",
"no-duplicate-imports": "warn",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "off",
"no-empty": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": "allow-with-description",
"ts-check": "allow-with-description",
"minimumDescriptionLength": 5
}
],
"@typescript-eslint/no-floating-promises": "warn",
"prefer-promise-reject-errors": "warn",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/no-base-to-string": "error",
"no-loss-of-precision": "off",
"@typescript-eslint/no-loss-of-precision": "error",
"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"prefer-template": "warn",
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true,
"allowedNames": [
"that"
]
}
],
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"no-implied-eval": "off",
"@typescript-eslint/no-implied-eval": [
"error"
]
}
},
"prettier": {
"printWidth": 130,
"useTabs": true,
"quoteProps": "consistent",
"singleQuote": true,
"trailingComma": "none",
"endOfLine": "lf",
"overrides": [
{
"files": [
"*BushClientEvents.d.ts"
],
"options": {
"printWidth": 80
}
},
{
"files": [
"badwords.ts",
"badlinks.ts",
"badlinks-secret.ts"
],
"options": {
"singleQuote": false,
"trailingComma": "es5"
}
}
]
},
"packageManager": "yarn@3.1.0"
}
|