From 699af83ec8e3a25ecc02eb21ab40ccf4a7933ea9 Mon Sep 17 00:00:00 2001 From: AgustinSRG Date: Wed, 29 Jul 2020 21:28:41 +0200 Subject: [PATCH] Upgrade version and set IDE settings --- .gitignore | 1 + .vscode/launch.json | 30 ++++++++++++++++++++++++++++++ .vscode/settings.json | 7 +++++++ .vscode/terminals.json | 12 ++++++++++++ README.md | 8 +------- package.json | 10 +++++----- runcmd.bat | 2 -- runonwindows.bat | 13 +++++++++++++ 8 files changed, 69 insertions(+), 14 deletions(-) create mode 100644 .vscode/launch.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/terminals.json delete mode 100644 runcmd.bat create mode 100644 runonwindows.bat diff --git a/.gitignore b/.gitignore index 9db9d62..1dc8dd3 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ npm-debug.log* # bat *.bat !runcmd.bat +!runonwindows.bat # Runtime data pids diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..95b10ed --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + "version": "0.2.0", + "configurations": [ + + { + "type": "node", + "request": "launch", + "name": "Start Bot", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "start" + ], + "skipFiles": [ + "/**" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Test Code", + "runtimeExecutable": "npm", + "runtimeArgs": [ + "test" + ], + "skipFiles": [ + "/**" + ] + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6b019c8 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "javascript.format.semicolons": "insert", + "files.exclude": { + "node_modules/**": true, + ".github/**": true + } +} diff --git a/.vscode/terminals.json b/.vscode/terminals.json new file mode 100644 index 0000000..6d43e31 --- /dev/null +++ b/.vscode/terminals.json @@ -0,0 +1,12 @@ +{ + "autorun": true, + "autokill": true, + "terminals": [ + { + "name": "SHOWDOWN-BOT", + "description": "Terminal for building and testing", + "open": true, + "focus": true + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index df831fd..bb37f8e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ Showdown ChatBot [![Dependency Status](https://david-dm.org/asanrom/Showdown-ChatBot.svg)](https://david-dm.org/asanrom/Showdown-ChatBot) [![devDependency Status](https://david-dm.org/asanrom/Showdown-ChatBot/dev-status.svg)](https://david-dm.org/asanrom/Showdown-ChatBot?type=dev) [![optionalDependency Status](https://david-dm.org/asanrom/Showdown-ChatBot/optional-status.svg)](https://david-dm.org/asanrom/Showdown-ChatBot?type=optional) +[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](https://github.com/asanrom/Showdown-ChatBot/blob/master/LICENSE) [Pokemon Showdown](https://github.com/Zarel/Pokemon-Showdown) bot written for [Node JS](http://nodejs.org/) with a toon of features often useful for chat rooms like automated moderation, blacklist, customizable help / information commands, games, tournament tools and chat logs. All of those features can be configured with a web control panel that does not require any programming knowledge to be used. @@ -82,10 +83,3 @@ Contributing ------------ - [Contributing guidelines](https://github.com/asanrom/Showdown-ChatBot/blob/master/CONTRIBUTING.md) - -Lisense ------------- - -[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=flat)](http://opensource.org/licenses/MIT) - -Showdown ChatBot is distributed under the terms of the [MIT License](https://github.com/asanrom/Showdown-ChatBot/blob/master/LICENSE). diff --git a/package.json b/package.json index 679bead..6fb03d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "showdown-chatbot", - "version": "2.0.2-beta", + "version": "2.1.0", "author": { "name": "Agustin San Roman", "email": "agustinsanromanguzman@gmail.com", @@ -18,10 +18,10 @@ }, "dependencies": { "busboy": "0.3.1", - "cheerio": "^1.0.0-rc.3", - "probe-image-size": "^5.0.0", + "cheerio": "1.0.0-rc.3", + "probe-image-size": "5.0.0", "sockjs-client": "1.4.0", - "websocket": "^1.0.31" + "websocket": "1.0.31" }, "optionalDependencies": { "githubhook": "1.9.3", @@ -36,6 +36,6 @@ "private": true, "license": "MIT", "devDependencies": { - "eslint": "7.4.0" + "eslint": "7.5.0" } } diff --git a/runcmd.bat b/runcmd.bat deleted file mode 100644 index 1b1a095..0000000 --- a/runcmd.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -call cmd.exe \ No newline at end of file diff --git a/runonwindows.bat b/runonwindows.bat new file mode 100644 index 0000000..bb60e50 --- /dev/null +++ b/runonwindows.bat @@ -0,0 +1,13 @@ +@echo off + +call node --version + +if errorlevel 1 echo You do not have NodeJS installed. && start "" https://nodejs.org/ && pause && exit + +call npm --version + +if errorlevel 1 echo You do not have NodeJS installed. && start "" https://nodejs.org/ && pause && exit + +call npm install + +call npm start