Initial commit

Push v3 to production
This commit is contained in:
Skylar Grant 2021-09-22 12:10:52 -04:00
parent cd9286488e
commit 5c8ea22626
5 changed files with 81 additions and 7 deletions

49
.eslintrc.json Normal file
View File

@ -0,0 +1,49 @@
{
"extends": "eslint:recommended",
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2021
},
"rules": {
"arrow-spacing": ["warn", { "before": true, "after": true }],
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"curly": ["error", "multi-line", "consistent"],
"dot-location": ["error", "property"],
"handle-callback-err": "off",
"indent": ["error", "tab"],
"keyword-spacing": "error",
"max-nested-callbacks": ["error", { "max": 4 }],
"max-statements-per-line": ["error", { "max": 2 }],
"no-console": "off",
"no-empty-function": "error",
"no-floating-decimal": "error",
"no-inline-comments": "error",
"no-lonely-if": "error",
"no-multi-spaces": "error",
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
"no-shadow": ["error", { "allow": ["err", "resolve", "reject"] }],
"no-trailing-spaces": ["error"],
"no-var": "error",
"object-curly-spacing": ["error", "always"],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": "error",
"yoda": "error"
}
}

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
# IDE Config Files # IDE Config Files
.vscode .vscode
.eslintrc.json
package-lock.json package-lock.json
.VSCodeCounter/ .VSCodeCounter/

25
list-of-commands.txt Normal file
View File

@ -0,0 +1,25 @@
Slash Commands:
/closereq
/gifs
/help
/joint
/joints
/lenny
/pastas
/ping
/requests
/savejoint (prev. .roll)
/savegif
/savepasta
/sendhelp
/truth
TODO: In the future I'd like to change to a single `/save {type}` command
Dot-Extension Commands:
.gif
.pasta
.request
.spongebob
.strain
.weather

0
main.js Normal file
View File

View File

@ -1,19 +1,20 @@
{ {
"name": "nodbot", "name": "nodbot",
"version": "2.2.0", "version": "3.0.0",
"description": "Nods and Nod Accessories.", "description": "Nods and Nod Accessories.",
"main": "index.js", "main": "main.js",
"dependencies": { "dependencies": {
"@discordjs/builders": "^0.6.0",
"@discordjs/rest": "^0.1.0-canary.0",
"axios": "^0.21.1", "axios": "^0.21.1",
"discord.js": "^12.5.3", "discord-api-types": "^0.22.0",
"discord.js": "^13.1.0",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"giphy-api": "^2.0.2",
"nodemon": "^2.0.9",
"pg": "^8.6.0", "pg": "^8.6.0",
"tenorjs": "^1.0.8" "tenorjs": "^1.0.8"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^7.29.0" "eslint": "^7.32.0"
}, },
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"