-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
1,384 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,82 @@ | ||
{ | ||
"env": { | ||
"commonjs": true, | ||
"es6": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended" | ||
], | ||
"globals": { | ||
"NodeJS": true, | ||
"BigInt": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 11, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"no-cond-assign": [ | ||
2, | ||
"except-parens" | ||
], | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": 1, | ||
"no-empty": [ | ||
"error", | ||
{ | ||
"allowEmptyCatch": true | ||
} | ||
], | ||
"prefer-const": [ | ||
"warn", | ||
{ | ||
"destructuring": "all" | ||
} | ||
], | ||
"spaced-comment": "warn", | ||
"no-console": "off", | ||
"no-constant-condition": "off", | ||
"indent": [ | ||
"error", | ||
"tab", | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"no-empty-pattern": "off", | ||
"quotes": [ | ||
"error", | ||
"double" | ||
], | ||
"linebreak-style": "off", | ||
"semi": [ | ||
"error", | ||
"always" | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"never" | ||
], | ||
"no-return-await": "warn", | ||
"no-unneeded-ternary": "warn", | ||
"object-shorthand": [ | ||
"warn", | ||
"always" | ||
], | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"slash-up.config.js" | ||
], | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 129,9 @@ dist | |
.yarn/install-state.gz | ||
.pnp.* | ||
config.json | ||
|
||
# Miscellaneous | ||
.tmp/ | ||
.vscode/ | ||
.env | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 1,29 @@ | ||
{ | ||
"name": "hyperbeam-discord-bot", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"type": "module", | ||
"description": "A template for slash-create", | ||
"main": "dist/index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "npx ts-node --esm src/index.ts", | ||
"deploy-commands": "npx ts-node --esm src/deploy-commands.ts" | ||
"sync": "slash-up sync", | ||
"sync:dev": "slash-up sync -e development", | ||
"start": "cd dist && node index.js", | ||
"build": "npx tsc", | ||
"lint": "npx eslint --ext .ts ./src", | ||
"lint:fix": "npx eslint --ext .ts ./src --fix" | ||
}, | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@discordjs/builders": "^0.13.0", | ||
"@discordjs/rest": "^0.4.1", | ||
"discord-api-types": "^0.33.2", | ||
"discord.js": "^13.7.0", | ||
"discord.js": "^13.8.0", | ||
"dotenv": "^16.0.1", | ||
"node-fetch": "^3.2.5" | ||
"slash-create": "^5.6.1" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^17.0.39", | ||
"ts-node": "^10.8.1", | ||
"typescript": "^4.7.2" | ||
"@types/express": "^4.17.13", | ||
"@types/node": "^17.0.41", | ||
"@typescript-eslint/eslint-plugin": "^5.27.1", | ||
"@typescript-eslint/parser": "^5.27.1", | ||
"eslint": "^8.17.0", | ||
"slash-up": "^1.1.2", | ||
"typescript": "^4.7.3" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 1,9 @@ | ||
{ | ||
"apps": [ | ||
{ | ||
"name": "slash-commands", | ||
"script": "node", | ||
"args": "dist/index.js" | ||
} | ||
] | ||
} |
Oops, something went wrong.