├── .gitattributes ├── .gitignore ├── include ├── fonts │ ├── FontAwesome.otf │ ├── Lobster_1_4.ttf │ ├── BrandonText-Thin.otf │ ├── BrandonText-Light.otf │ ├── BrandonText-Medium.otf │ ├── BrandonText-Regular.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── css │ ├── style.css │ ├── main.css │ ├── normalize.css │ └── font-awesome.min.css └── js │ ├── tether.min.js │ ├── bootstrap.min.js │ └── jquery.min.js ├── README.md ├── package.json ├── main.js ├── html └── index.html └── farmer.js /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | *.js text eol=lf -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | sentry.*.sha1 3 | servers.json 4 | builds/* -------------------------------------------------------------------------------- /include/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /include/fonts/Lobster_1_4.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/Lobster_1_4.ttf -------------------------------------------------------------------------------- /include/fonts/BrandonText-Thin.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/BrandonText-Thin.otf -------------------------------------------------------------------------------- /include/fonts/BrandonText-Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/BrandonText-Light.otf -------------------------------------------------------------------------------- /include/fonts/BrandonText-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/BrandonText-Medium.otf -------------------------------------------------------------------------------- /include/fonts/BrandonText-Regular.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/BrandonText-Regular.otf -------------------------------------------------------------------------------- /include/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /include/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /include/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /include/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DoctorMcKay/Steam-Card-Farmer/HEAD/include/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Steam Card Farmer 2 | 3 | ## A work-in-progress [Electron](http://electron.atom.io) app 4 | 5 | *Looking for the old CLI version? It's still available on 6 | [GitHub](https://github.com/DoctorMcKay/Steam-Card-Farmer/tree/old-cli) and 7 | [npm](https://www.npmjs.com/package/steam-card-farmer). 8 | 9 | ## Usage 10 | 11 | ### Run / Test app 12 | `npm test` 13 | 14 | ### Build app 15 | `npm start` 16 | 17 | ## License 18 | 19 | Released under [the GPLv3 license](https://opensource.org/licenses/GPL-3.0). 20 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "steam-card-farmer", 3 | "description": "Automatically farms card drops for Steam games you own with remaining drops", 4 | "version": "3.0.0", 5 | "private": true, 6 | "repository": { 7 | "type": "git", 8 | "url": "https://github.com/DoctorMcKay/Steam-Card-Farmer" 9 | }, 10 | "dependencies": { 11 | "cheerio": "^0.18.0", 12 | "steam-user": "^3.3.0", 13 | "steam-client": "^1.1.1", 14 | "steamcommunity": "^3.19.9" 15 | }, 16 | "license": "GPLv3", 17 | "scripts": { 18 | "start": "electron-packager \"./\" \"Steam Card Farmer\" --platform=win32 --arch=x64 --ignore=\"./builds*\" --out=\"./builds\" --overwrite --version=1.2.5", 19 | "test": "electron .", 20 | "preinstall": "(npm list electron-prebuilt -g || npm install electron-prebuilt -g) && (npm list electron-packager -g || npm install electron-packager -g)" 21 | }, 22 | "main": "main.js" 23 | } -------------------------------------------------------------------------------- /include/css/style.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family:"Lobster"; 3 | src:url("../font/Lobster_1_4.ttf") format("truetype"); 4 | font-weight:normal; 5 | font-style:normal; 6 | } 7 | h1 { 8 | font-family:Lobster; 9 | } 10 | .lobster { 11 | font-family:Lobster; 12 | } 13 | .list li { 14 | background: url("") no-repeat 97% 50%; 15 | border-bottom: 1px solid #ccc; 16 | display: table; 17 | border-collapse: collapse; 18 | width: 100%; 19 | } 20 | .inner { 21 | overflow: hidden; 22 | } 23 | .li-img { 24 | display: table-cell; 25 | vertical-align: middle; 26 | width: 50%; 27 | padding-right: 1em; 28 | } 29 | .li-img img { 30 | display: block; 31 | width: 100%; 32 | height: auto; 33 | } 34 | .li-text { 35 | display: table-cell; 36 | vertical-align: middle; 37 | width: 50%; 38 | } 39 | .li-head { 40 | margin: 0; 41 | } 42 | .li-sub { 43 | margin: 0; 44 | } 45 | 46 | @media all and (min-width: 560px) { 47 | .list li { 48 | float: left; 49 | width: 50%; 50 | } 51 | } 52 | 53 | @media all and (min-width: 1200px) { 54 | .list li { 55 | width: 33.33333%; 56 | } 57 | } -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | // Third-party modules 2 | var SteamUser = require('steam-user'); 3 | var SteamCommunity = require('steamcommunity'); 4 | 5 | Electron = require('electron'); 6 | BrowserWindow = Electron.BrowserWindow; 7 | app = Electron.app; 8 | 9 | g_CurrentWindow=''; 10 | 11 | // Set up stuff that needs to be accessed across windows 12 | exports.steamClient = new SteamUser({"promptSteamGuardCode": false}); 13 | exports.steamCommunity = new SteamCommunity(); 14 | 15 | app.on('ready', () => { 16 | // Electron has initialized 17 | openWindow("index.html"); 18 | }); 19 | 20 | function openWindow(filename) { 21 | if (g_CurrentWindow) { 22 | throw new Error("A window is already open"); 23 | } 24 | 25 | g_CurrentWindow = new BrowserWindow({ 26 | "frame": false, 27 | "titleBarStyle": "hidden", 28 | "width": 350, 29 | "height": 500, 30 | "resizable": false, 31 | "position": "center", 32 | "min_width": 350, 33 | "min_height": 500, 34 | "max_width": 350, 35 | "title": "Steam Card Farmer" 36 | }); 37 | 38 | g_CurrentWindow.setMenu(null); 39 | g_CurrentWindow.loadURL(`file://${__dirname}/html/${filename}`); 40 | g_CurrentWindow.on('closed', () => { 41 | g_CurrentWindow = null; 42 | }); 43 | } 44 | -------------------------------------------------------------------------------- /html/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 |
43 |
44 |
55 | '+lowHourApps[i].playtime+' hrs on record