Commit graph

96 commits

Author SHA1 Message Date
mcinj
66a812ddd6 separate out won job function 2022-06-14 20:49:56 -04:00
mcinj
8dc2721efe scheduling of the main giveaway code 2022-06-10 15:48:27 -04:00
mcinj
113e111e9d woops 2022-06-08 22:03:04 -04:00
mcinj
48c030f445 win scraping
- will scape won games at start to update db for giveaways the bot has entered
- schedules a once a day run of scraping won giveaways
2022-06-08 21:55:17 -04:00
mcinj
de2379587e won
- adding back ability to mark giveaway as won. no use just yet
2022-06-05 13:29:27 -04:00
mcinj
8010bbd750 stats 2022-06-01 07:58:06 -04:00
mcinj
f3e6c165f4 clean up html template 2022-05-26 17:03:58 -04:00
mcinj
7a8d2fe793 stateful notifications 2022-05-24 09:15:25 -04:00
mcinj
e7a4e90988 prettify (but still ugly) the giveaway table 2022-05-24 08:27:54 -04:00
mcinj
7c6493cea8 re-org and db views 2022-05-22 14:20:44 -04:00
mcinj
9f2b2e7be2 removed unused column 2022-05-21 13:12:04 -04:00
mcinj
6a5e679aec fix ref 2022-05-20 23:42:42 -04:00
mcinj
3005228416 more logging 2022-05-20 17:37:43 -04:00
mcinj
5e198e2e9d readme update 2022-05-20 16:56:36 -04:00
mcinj
a101447eeb reorganization
- Had to reorganize so that Alembic's env.py could reference the tables in both local environment and a docker environment without manually modifying the python sys path. Maybe there is a better way idk
2022-05-20 12:20:08 -04:00
mcinj
3670d1522f migrations
- handles the case where the first db that was not versioned with alembic by applying the version info
  - will migrate on start to ensure db is always caught up with the latest
2022-05-19 22:01:12 -04:00
mcinj
5c30089b72 bad reference 2022-05-19 18:23:35 -04:00
mcinj
abc2e66c29 version control db 2022-05-19 18:03:35 -04:00
mcinj
948281dbfb not used 2022-05-18 22:08:03 -04:00
mcinj
9b67cdacf1 changes 2022-05-16 23:56:47 -04:00
mcinj
6cb493eba7 add host
- small clean up
2022-05-16 16:03:12 -04:00
mcinj
b51712cb87 rename all the things 2022-05-15 13:56:28 -04:00
mcinj
fd9e5ba23e stuff 2022-05-15 11:39:44 -04:00
mcinj
e8596fb544 stuff 2022-05-14 18:50:19 -04:00
mcinj
d76452bdc3 pretty logs 2022-05-14 11:13:29 -04:00
mcinj
54054b4f6d docker. basic auth. 2022-05-14 00:47:15 -04:00
mcinj
6a1c7a36d8 changing log level 2022-05-13 22:33:10 -04:00
mcinj
f3ddfc8297 running in docker 2022-05-13 17:06:11 -04:00
mcinj
4478b14e20 removed 2022-05-13 16:58:47 -04:00
mcinj
f60220f302 web
- show config and logs in webserver
2022-05-13 16:55:52 -04:00
mcinj
4f4709776b threading
- added a simple webserver thread that runs alongside the steamgift enterer
2022-05-13 13:29:40 -04:00
mcinj
d250ed48b5 log just info to info.log 2022-05-13 12:34:56 -04:00
mcinj
ceb55bec68 assigne user agent from list 2022-05-13 11:43:59 -04:00
mcinj
0d6b974785 user agents 2022-05-12 12:14:48 -04:00
mcinj
8e28be9b90 change user agent ahhh 2022-05-12 12:05:35 -04:00
mcinj
6d57c1c4f2 some cleanup 2022-05-12 11:54:58 -04:00
mcinj
de4450a29a comparison fix 2022-05-11 18:02:49 -04:00
mcinj
dc3686956c work around utc datetime filter in sqlalchemy with sqlite backend 2022-05-11 17:34:40 -04:00
mcinj
ca3425e964 allow custom prefix in message 2022-05-10 13:03:34 -04:00
mcinj
1d6d5da86e cleanup 2022-05-09 12:31:40 -04:00
mcinj
6241264147 convenience methods 2022-05-09 12:19:36 -04:00
mcinj
07b44f51f8 more generic win selector 2022-05-09 06:35:24 -04:00
mcinj
3d3752de22 on-win notification
- added notifications when a won giveaway is detected
 - a notification will only be sent once a day
2022-05-08 21:55:09 -04:00
mcinj
405dd11a9b add contributor level
- if you are not hiding giveaways above your level then this could be a problem so this checks you can in fact enter a game
2022-05-06 10:56:57 -04:00
mcinj
985be444d6 not all steam things are 'apps' 2022-05-06 07:07:00 -04:00
mcinj
c53f08397e add all giveaways 2022-05-05 21:47:48 -04:00
mcinj
ac89e2e886 sqlite db
- store entered giveaways into db
 - store notifications into db
 - future: add won notifications
2022-05-05 16:50:01 -04:00
mcinj
40d2256eb5 Pushover notifications
- Ability to setup pushover notifications
 - Will send a message if the cookie is invalid or if something happens evaluating gifts
2022-05-05 09:01:11 -04:00
mcinj
4a6acc66a1 safety net 2022-05-04 22:46:13 -04:00
mcinj
1f1abb5b0d fix issue where wishlist we were not comparing all giveaways including ones already entered 2022-05-04 22:34:56 -04:00