diff options
| author | Christopher Gwynn <[email protected]> | 2021-01-16 04:50:42 -0500 |
|---|---|---|
| committer | Christopher Gwynn <[email protected]> | 2021-01-16 04:50:42 -0500 |
| commit | 025a912a093a5d9a813a9aade849b8463182c5b7 (patch) | |
| tree | 61f8b698135cc8c56531ffee1102ea29d608996f | |
| download | wizard101-rpc-025a912a093a5d9a813a9aade849b8463182c5b7.tar.xz wizard101-rpc-025a912a093a5d9a813a9aade849b8463182c5b7.zip | |
Initial commit
| -rw-r--r-- | .eslintrc.json | 141 | ||||
| -rw-r--r-- | .gitattributes | 2 | ||||
| -rw-r--r-- | .gitignore | 104 | ||||
| -rw-r--r-- | LICENSE | 21 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | index.js | 0 | ||||
| -rw-r--r-- | package.json | 8 | ||||
| -rw-r--r-- | settings.json | 0 | ||||
| -rw-r--r-- | start.bat | 1 | ||||
| -rw-r--r-- | zones.json | 0 |
10 files changed, 279 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..1aff259 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,141 @@ +{ + "extends": ["eslint:recommended"], + "env": { + "node": true, + "es6": true + }, + "globals": { + "bot": false, + "cluster": false, + "r": false, + "__": false + }, + "parserOptions": { + "ecmaVersion": 2017 + }, + "rules": { + "no-extra-parens": ["warn", "all", { + "nestedBinaryExpressions": false + }], + "valid-jsdoc": ["warn", { + "requireReturn": false, + "requireReturnDescription": false, + "preferType": { + "String": "string", + "Number": "number", + "Boolean": "boolean", + "Function": "function", + "object": "Object", + "date": "Date", + "error": "Error" + } + }], + + "accessor-pairs": "warn", + "array-callback-return": "error", + "consistent-return": "off", + "curly": ["error", "multi-line", "consistent"], + "dot-location": ["error", "property"], + "dot-notation": "error", + "eqeqeq": "off", + "no-empty-function": "error", + "no-floating-decimal": "error", + "no-implied-eval": "error", + "no-invalid-this": "error", + "no-lone-blocks": "error", + "no-multi-spaces": "error", + "no-new-func": "error", + "no-new-wrappers": "error", + "no-new": "error", + "no-octal-escape": "error", + "no-self-compare": "error", + "no-sequences": "error", + "no-throw-literal": "error", + "no-unmodified-loop-condition": "error", + "no-unused-expressions": "off", + "no-unused-vars": ["error", { "args": "none" }], + "no-console": "off", + "no-useless-call": "error", + "no-useless-concat": "error", + "no-useless-escape": "off", + "no-void": "error", + "no-warning-comments": "warn", + "wrap-iife": "error", + "yoda": "error", + + "no-label-var": "error", + "no-shadow": "error", + "no-undef-init": "off", + + "callback-return": "error", + "handle-callback-err": "error", + "no-mixed-requires": "error", + "no-new-require": "error", + "no-path-concat": "error", + + "array-bracket-spacing": "error", + "block-spacing": "error", + "brace-style": ["error", "1tbs", { "allowSingleLine": true }], + "camelcase": "error", + "comma-dangle": "error", + "comma-spacing": "error", + "comma-style": "error", + "computed-property-spacing": "error", + "consistent-this": "error", + "eol-last": "error", + "func-style": ["error", "declaration", { "allowArrowFunctions": true }], + "id-length": ["off", { "exceptions": ["i", "j", "a", "b"] }], + "indent": ["error", "tab", { "SwitchCase": 1 }], + "key-spacing": "error", + "keyword-spacing": ["error", { + "overrides": { + "if": { "after": false }, + "for": { "after": false }, + "while": { "after": false }, + "catch": { "after": false }, + "switch": { "after": false } + } + }], + "max-len": ["off", 120, 2], + "max-nested-callbacks": ["error", { "max": 10 }], + "max-statements-per-line": ["error", { "max": 10 }], + "new-cap": "error", + "no-array-constructor": "error", + "no-lonely-if": "off", + "no-mixed-operators": "off", + "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }], + "no-new-object": "error", + "no-spaced-func": "error", + "no-trailing-spaces": "error", + "no-unneeded-ternary": "error", + "no-whitespace-before-property": "error", + "object-curly-newline": "error", + "object-curly-spacing": ["error", "always"], + "operator-assignment": "error", + "operator-linebreak": ["error", "after"], + "padded-blocks": ["error", "never"], + "quotes": ["error", "double", { "allowTemplateLiterals": true, "avoidEscape": true }], + "quote-props": ["off", "as-needed"], + "semi-spacing": "error", + "semi": "error", + "space-before-blocks": "error", + "space-in-parens": "error", + "space-infix-ops": "error", + "space-unary-ops": "error", + "spaced-comment": "error", + "unicode-bom": "error", + + "arrow-body-style": "error", + "arrow-spacing": "error", + "no-duplicate-imports": "error", + "no-useless-computed-key": "error", + "no-useless-constructor": "error", + "prefer-arrow-callback": "error", + "prefer-rest-params": "error", + "prefer-spread": "error", + "prefer-template": "error", + "rest-spread-spacing": "error", + "template-curly-spacing": "error", + "yield-star-spacing": "error" + } +}
\ No newline at end of file diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6704566 --- /dev/null +++ b/.gitignore @@ -0,0 +1,104 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +lerna-debug.log* + +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + +# Runtime data +pids +*.pid +*.seed +*.pid.lock + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage +*.lcov + +# nyc test coverage +.nyc_output + +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# Bower dependency directory (https://bower.io/) +bower_components + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (https://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# TypeScript v1 declaration files +typings/ + +# TypeScript cache +*.tsbuildinfo + +# Optional npm cache directory +.npm + +# Optional eslint cache +.eslintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env +.env.test + +# parcel-bundler cache (https://parceljs.org/) +.cache + +# Next.js build output +.next + +# Nuxt.js build / generate output +.nuxt +dist + +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and *not* Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + +# vuepress build output +.vuepress/dist + +# Serverless directories +.serverless/ + +# FuseBox cache +.fusebox/ + +# DynamoDB Local files +.dynamodb/ + +# TernJS port file +.tern-port @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Christopher Gwynn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..49be35d --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# wizard101-rpc + Discord Rich Presence for Wizard101! diff --git a/index.js b/index.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/index.js diff --git a/package.json b/package.json new file mode 100644 index 0000000..aa9f2a2 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "wizard101-rpc", + "version": "0.1.0", + "description": "Discord Rich Presence for Wizard101!", + "main": "index.js", + "author": "Christopher Gwynn", + "license": "MIT" +} diff --git a/settings.json b/settings.json new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/settings.json diff --git a/start.bat b/start.bat new file mode 100644 index 0000000..a77d084 --- /dev/null +++ b/start.bat @@ -0,0 +1 @@ +nodemon index.js
\ No newline at end of file diff --git a/zones.json b/zones.json new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/zones.json |