forked from PalmaLuv/SteamGiftBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
53 lines (46 loc) · 1.76 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# ______ ______ _____ ___
# / __/ /____ ___ ___ _ / ___(_) _/ /_ / _ \___ ________ ___ ____
# _\ \/ __/ -_) _ `/ ' \ / (_ / / _/ __/ / ___/ _ `/ __(_-</ -_) __/
# /___/\__/\__/\_,_/_/_/_/ \___/_/_/ \__/ /_/ \_,_/_/ /___/\__/_/
#
# Created by: github.com/PalmaLuv
# Stay tuned for further app updates
# License GPL-3.0 license
# from method.method import SteamGift
import configparser
import client as _l
# from PyInstaller import (Token, Error, JsonPrint, prompt)
config = configparser.ConfigParser()
def run():
from method.method import SteamGift as steamGif
for i in range(4):
_l.log(_l.array_logo[i], "green")
_l.log("\nEnjoy using our product!","white")
_l.log("Created by: github.com/PalmaLuv\nStay tuned for further app updates","red")
config.read('config.ini')
if not config['DEFAULT'].get('cookie'):
cookie = _l.askCookie()
else:
InputCookie = _l.ask('confirm', 'reenter',
'Do you want to enter new cookie?')['reenter']
if InputCookie:
cookie = _l.askCookie()
else:
cookie = config['DEFAULT'].get('cookie')
pinnedGames = _l.ask('confirm', 'pinned',
'Should the bot enter pinned games?')['pinned']
giftTYPE = _l.ask('list', 'gift_type', 'Select type:',
choices=[
'All',
'WishList',
'Recommended',
'Copies',
'DLC',
'New'
])['gift_type']
minPoin = _l.ask('input', 'min_points',
'What is the minimum number of points to remain?', _l.PointValidator)['min_points']
sg = steamGif(cookie, giftTYPE, pinnedGames, minPoin)
sg.start()
if __name__ == '__main__':
run()