From 5c8ea2262688eebf453684e47136d6eae768c057 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Wed, 22 Sep 2021 12:10:52 -0400 Subject: [PATCH] Initial commit Push v3 to production --- .eslintrc.json | 49 ++++++++++++++++++++++++++++++++++++++++++++ .gitignore | 1 - list-of-commands.txt | 25 ++++++++++++++++++++++ main.js | 0 package.json | 13 ++++++------ 5 files changed, 81 insertions(+), 7 deletions(-) create mode 100644 .eslintrc.json create mode 100644 list-of-commands.txt create mode 100644 main.js diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..ae431cc --- /dev/null +++ b/.eslintrc.json @@ -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" + } +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 8d435d9..cba1984 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ # IDE Config Files .vscode -.eslintrc.json package-lock.json .VSCodeCounter/ diff --git a/list-of-commands.txt b/list-of-commands.txt new file mode 100644 index 0000000..910f7bf --- /dev/null +++ b/list-of-commands.txt @@ -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 \ No newline at end of file diff --git a/main.js b/main.js new file mode 100644 index 0000000..e69de29 diff --git a/package.json b/package.json index f254065..504a86a 100644 --- a/package.json +++ b/package.json @@ -1,19 +1,20 @@ { "name": "nodbot", - "version": "2.2.0", + "version": "3.0.0", "description": "Nods and Nod Accessories.", - "main": "index.js", + "main": "main.js", "dependencies": { + "@discordjs/builders": "^0.6.0", + "@discordjs/rest": "^0.1.0-canary.0", "axios": "^0.21.1", - "discord.js": "^12.5.3", + "discord-api-types": "^0.22.0", + "discord.js": "^13.1.0", "dotenv": "^10.0.0", - "giphy-api": "^2.0.2", - "nodemon": "^2.0.9", "pg": "^8.6.0", "tenorjs": "^1.0.8" }, "devDependencies": { - "eslint": "^7.29.0" + "eslint": "^7.32.0" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1"