From 0564241327ecc6eb08cd716f510ebb0afbb3eeb3 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 11 Apr 2017 21:21:22 +0200 Subject: draft: rewrite in node --- .gitignore | 129 +++++++++++++++++++++++-------------------------------------- 1 file changed, 48 insertions(+), 81 deletions(-) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index a3401aa..2788ca5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,93 +1,60 @@ -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -.Python -env/ -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*,cover -.hypothesis/ - -# Translations -*.mo -*.pot - -# Django stuff: +# Logs +logs *.log -!/logs -!run*.log -local_settings.py +npm-debug.log* +yarn-debug.log* +yarn-error.log* -# Flask stuff: -instance/ -.webassets-cache +# Runtime data +pids +*.pid +*.seed +*.pid.lock -# Scrapy stuff: -.scrapy +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov -# Sphinx documentation -docs/_build/ +# Coverage directory used by tools like istanbul +coverage -# PyBuilder -target/ +# nyc test coverage +.nyc_output -# Jupyter Notebook -.ipynb_checkpoints +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt -# pyenv -.python-version +# Bower dependency directory (https://bower.io/) +bower_components -# celery beat schedule file -celerybeat-schedule +# node-waf configuration +.lock-wscript -# dotenv -.env +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directories +node_modules/ +jspm_packages/ + +# Typescript v1 declaration files +typings/ + +# Optional npm cache directory +.npm -# virtualenv -.venv/ -venv/ -ENV/ +# Optional eslint cache +.eslintcache -# Spyder project settings -.spyderproject +# Optional REPL history +.node_repl_history + +# Output of 'npm pack' +*.tgz + +# Yarn Integrity file +.yarn-integrity + +# dotenv environment variables file +.env -# Rope project settings -.ropeproject +.sqlite3 -- cgit v1.3.1 From 7a6150f68888df9c110349dbae7173229037d470 Mon Sep 17 00:00:00 2001 From: schneefux Date: Sun, 16 Apr 2017 22:46:12 +0200 Subject: use participant skill tier on player profile --- .gitignore | 1 - responses.js | 10 +++++++--- settings.sqlite3 | Bin 8192 -> 0 bytes 3 files changed, 7 insertions(+), 4 deletions(-) delete mode 100644 settings.sqlite3 (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 2788ca5..00cbbdf 100644 --- a/.gitignore +++ b/.gitignore @@ -57,4 +57,3 @@ typings/ # dotenv environment variables file .env -.sqlite3 diff --git a/responses.js b/responses.js index 9945861..b0a9941 100644 --- a/responses.js +++ b/responses.js @@ -108,12 +108,16 @@ module.exports.showUser = async (msg, args) => { continue; } let matches = (await api.searchMatches(ign)).data; - let matchstr = "not available"; - if (matches.length > 0) matchstr = formatMatch(matches[0]); + let matchstr = "not available", + skill_tier = -1; + if (matches.length > 0) { + matchstr = formatMatch(matches[0]); + skill_tier = matches[0].skill_tier; + } let embed = vainsocialEmbed(`${ign} - ${player.shard_id}`, "player/" + ign) .setThumbnail("https://vainsocial.com/images/game/skill_tiers/" + - player.skill_tier + ".png") + skill_tier + ".png") .setDescription("") .addField("Profile", formatPlayer(player), true) .addField("Last match", matchstr + ` diff --git a/settings.sqlite3 b/settings.sqlite3 deleted file mode 100644 index 15ce44e..0000000 Binary files a/settings.sqlite3 and /dev/null differ -- cgit v1.3.1 From ad88b9a19cd5438d18be061db08511183b6a20bf Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 18 Apr 2017 18:14:56 +0200 Subject: update gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) (limited to '.gitignore') diff --git a/.gitignore b/.gitignore index 00cbbdf..6c64673 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +*.sqlite3 + # Logs logs *.log -- cgit v1.3.1