Permalink
Browse files

Cleaned code

Using ESLint to clean code and added forgotten ctx variable to function initialiser.
  • Loading branch information...
bostrot committed Aug 18, 2018
1 parent 6f0517c commit 3076141805ff60211164acf5ed3ff833b5d4af78
Showing with 666 additions and 443 deletions.
  1. +9 −0 .eslintrc.js
  2. +1 −0 .gitattributes
  3. +1 −1 README.md
  4. +8 −8 bin/cache.js
  5. +252 −193 bin/support.js
  6. +242 −133 bin/ticket_handler.js
  7. +23 −20 config.js
  8. +126 −78 package-lock.json
  9. +4 −10 package.json
@@ -0,0 +1,9 @@
module.exports = {
"extends": "google",
"parserOptions": {
"ecmaVersion": 6
},
"rules": {
"linebreak-style": 0
}
};
@@ -0,0 +1 @@
*.js filter=gitignore
@@ -94,7 +94,7 @@ BotFather will give you a *token*, something like `123456789:AbCdfGhIJKlmNoQQRsT

## Help

You are welcome to contribute with pull requests, bug reports, ideas and donations.
You are welcome to contribute with pull requests, bug reports, ideas and donations. Join the forum if you have any general purpose questions: [discuss.bostrot.com](https://discuss.bostrot.com)

Bitcoin: [1ECPWeTCq93F68BmgYjUgGSV11XuzSPSeM](https://www.blockchain.com/btc/payment_request?address=1ECPWeTCq93F68BmgYjUgGSV11XuzSPSeM&currency=USD&nosavecurrency=true&message=Bostrot)

@@ -1,8 +1,8 @@
module.exports = {
ticketID: "",
ticketIDs: [],
ticketStatus: {},
ticketSent: [],
html: "",
noSound: "",
}
module.exports = {
ticketID: '',
ticketIDs: [],
ticketStatus: {},
ticketSent: [],
html: '',
noSound: '',
};
Oops, something went wrong.

0 comments on commit 3076141

Please sign in to comment.