Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miscellaneous changes. #6

Open
wants to merge 81 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
b3609df
Fixed the detection of "Mine" button
theDebonair Jun 8, 2022
98a20d1
Update README.md
theDebonair Jun 8, 2022
5f4129f
Updated XPath
theDebonair Jun 8, 2022
d0f44d9
Improved button detection
theDebonair Jun 9, 2022
88f29f3
Miscellaneous changes
theDebonair Jun 10, 2022
96e4259
Various optimizations
theDebonair Jun 10, 2022
1599996
Updated requirements, now more easy to use the bot, less interaction
theDebonair Jun 10, 2022
58ca99a
Updated signin prompt
theDebonair Jun 11, 2022
b3520fd
Updated signin check mechanism
theDebonair Jun 11, 2022
d94c4dd
Some fixes
theDebonair Jun 11, 2022
b8ac5be
Bug fix
theDebonair Jun 11, 2022
56eba22
Fix formatting
theDebonair Jun 11, 2022
f36b042
Fixed bugs in awapi
theDebonair Jun 11, 2022
0dddb9b
Update README.md
theDebonair Jun 11, 2022
2e2c203
Update README.md
theDebonair Jun 11, 2022
93ed21d
Updated readme
theDebonair Jun 11, 2022
2ceb581
Merge branch 'main' of https://github.com/theDebonair/awbot
theDebonair Jun 11, 2022
9e1fc75
Updated readme
theDebonair Jun 11, 2022
b723266
Added show average and last mined value.
theDebonair Jun 12, 2022
09617e1
Minor fixes
theDebonair Jun 12, 2022
10c3c32
Updated formatting
theDebonair Jun 12, 2022
8dc2dc9
Fixed avg rate
theDebonair Jun 12, 2022
07c0b28
Minor fixes
theDebonair Jun 12, 2022
f52b1b3
Added resource(s) over-utilization
theDebonair Jun 13, 2022
f04433b
Bot resource throttling
theDebonair Jun 13, 2022
d68a85e
Updated readme
theDebonair Jun 13, 2022
d4e8739
Fix internet check
theDebonair Jun 14, 2022
eac2df8
Fix internet check
theDebonair Jun 14, 2022
01b271d
Fix internet check
theDebonair Jun 14, 2022
4fd8ae6
Fix internet check
theDebonair Jun 14, 2022
d93e016
Fixed window position, optimized code
theDebonair Jun 14, 2022
fcac52f
Fixed code formatting
theDebonair Jun 14, 2022
ef78ae5
Added notification on termination, etc.
theDebonair Jun 14, 2022
8b500c4
Updated run.ps1
theDebonair Jun 14, 2022
03e172e
Fixed basic errors
theDebonair Jun 14, 2022
2ce5483
Improved approve button error handling, crashes
theDebonair Jun 15, 2022
b14f015
Fixed bugs
theDebonair Jun 15, 2022
ca7c41e
Bug fixes
theDebonair Jun 15, 2022
acdb1db
Miscellaneous changes
theDebonair Jun 22, 2022
f6a95a0
Updates
theDebonair Jun 22, 2022
9c62b70
Updated
theDebonair Jun 23, 2022
882bdf1
Minor fixes
theDebonair Jun 23, 2022
d927c99
Updated awbot, requirements
theDebonair Jun 23, 2022
bec2d24
Stability optimization
theDebonair Jun 23, 2022
c3ed0e9
Minor fixes
theDebonair Jun 24, 2022
4d810f2
Script formatting done
theDebonair Jun 24, 2022
ac34d4f
Updates
theDebonair Jun 24, 2022
e2d89ba
Minor fix
theDebonair Jun 24, 2022
216bc39
Update
theDebonair Jun 24, 2022
38e9cd8
Code optimized
theDebonair Jun 24, 2022
583c1d0
Final build
theDebonair Jun 24, 2022
bb31778
Fully supported headless mode
theDebonair Jun 26, 2022
a8450a9
Added screenshot feature
theDebonair Jun 26, 2022
8d4f8ff
Minor fixes and improvements
theDebonair Jun 27, 2022
129ca67
Updated
theDebonair Jun 27, 2022
b77c6d5
Added JS
theDebonair Jun 29, 2022
e255813
Minor fixes
theDebonair Jul 2, 2022
8199903
Minor fix
theDebonair Jul 2, 2022
e3a7c6f
Minor change
theDebonair Jul 2, 2022
f8d3404
Optimized
theDebonair Jul 2, 2022
634c8aa
Improved button detection
theDebonair Jul 2, 2022
9e04a07
Improved file read
theDebonair Jul 2, 2022
fb05f5f
Improved files input
theDebonair Jul 3, 2022
e745a34
Fixed mine button not found error
theDebonair Jul 3, 2022
cc3d14b
Minor fixes
theDebonair Jul 5, 2022
0022448
Final version
theDebonair Jul 5, 2022
0942bc7
Updated readme
theDebonair Jul 5, 2022
cc2f216
Updated
theDebonair Jul 5, 2022
5bcf386
Updated readme
theDebonair Jul 5, 2022
315645e
Minor fixes
theDebonair Jul 5, 2022
09688e1
Updated readme
theDebonair Jul 5, 2022
d1e6e10
Added "TLM sell" option
theDebonair Jul 5, 2022
7e44340
Fixed bugs
theDebonair Jul 6, 2022
1756a8c
Minor fix
theDebonair Jul 8, 2022
9c1c85a
Minor fix
theDebonair Jul 10, 2022
b823c2e
Updated searching mechanism
theDebonair Jul 22, 2022
3a7fab4
Some optimizations
theDebonair Aug 13, 2022
08975b1
Updated readme
theDebonair Aug 24, 2022
5c05eb8
Error with WDM fixed
theDebonair Aug 24, 2022
5cef96e
Added inst. for Screenshot
theDebonair Aug 24, 2022
925b8d4
Added "Start Now", "Nothing to be mined" detection
theDebonair Oct 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,22 @@ dmypy.json

# Pyre type checker
.pyre/

# pip file
Pipfile
Pipfile.lock

# Wallet address
account.txt

# Signin check file
sign.file

# Throttle file check
throttle.txt

# vscode config files
.vscode

# .png files
*.png
51 changes: 30 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,47 @@
# awbot
Alien Worlds automation using Python
###### Alien Worlds automation using Python.

### Requirements
- Python 3.6 or later (You may download Python from here https://www.python.org/downloads)
- Chrome Driver (Downloaded automatically during runtime. If Chrome Driver could not be downloaded automatically, please manually download the correct version from here https://chromedriver.chromium.org/downloads)
- Python Packages (Listed in requirements.txt)
- Active Alien Worlds account
- ###### Python 3.6 or later (You may download Python from here https://www.python.org/downloads),
- ###### Chrome Driver (Downloaded automatically during runtime. If Chrome Driver could not be downloaded automatically, please manually download the correct version from here https://chromedriver.chromium.org/downloads),
- ###### Python Packages (Listed in requirements.txt),
- ###### Active Alien Worlds account.

### Installation Instructions
- Clone this repository
- ###### Clone this repository,
```
git clone https://github.com/dobizz/awbot.git
git clone https://github.com/theDebonair/awbot.git
cd awbot
```
- Install all the required Python packages

- ###### Install all the required Python packages.
```
pip install -r requirements.txt
```

### Running Instructions
After all the dependencies have been downloaded and installed, simply run awbot.py
- ###### After all the dependencies have been downloaded and installed, simply run "awbot.py".
```
python awbot.py
```

On the first run you need to login to your wax account, on the succeeding runs you will be logged in automatically as the session cookies will be saved.

Follow the prompts in the command terminal.

### Donations
Donations are much welcome to buy needed coffee.

BTC `1zdraxHPQfZ8wvpMXt2VYhnGwmkLCf7UL`

ETH `0x4e1736Db4d3912e6Ddd4E5a7A710D85ed369B987`

XRP `rU2mEJSLqBRkYLVTv55rFTgQajkLTnT6mA` Destination Tag `107601`
### Attention
###### Using bot or any kind of automation is not recommended by the Aliens World. I'm not responsible for any kind of your loss(es). USE AT YOUR OWN RISK!

### Features
- ###### "Bot resource(s) throttling" feature disables the check for CPU, NET, RAM usage. This enables the bot to click even when the resources are above 100%.
- ###### "Headless mode" is the mode where browser will completely run in the background without disturbing you. When login will be required, headless mode will be turned OFF automatically.
- ###### "Screenshot" of the last opened pages.
- ###### Added a feature to sell the "TLM" tokens. This can be done by creating a file "sell.file" in the bot's directory.

### PS
- ###### On the first run you need to login to your wax account, on the succeeding runs you will be logged in automatically as the session cookies will be saved.
- ###### Follow the prompts in the command terminal.
- ###### You must open the terminal in the same directory where the files are stored.
- ###### To prevent any errors, click the "Mine" button and "claim" manually very first time of using the bot. Their is some issue with WAX wallet, or you must have some "TLM" tokens in your wallet.
- ###### To take screenshot, you've to uncomment 4 lines under the comment ```# full page screenshot``` within the bot.
- ###### Feel free to make suggestions, report bugs on this project's [discussions](https://github.com/theDebonair/awbot/discussions) tab.

### Want to buy me a lambo?
- ###### WAX: xau3c.c.wam
- ###### BNB, ETH: 0xaA98aAE37F98ce7d657f4472e14891266c13e321
12 changes: 9 additions & 3 deletions awapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,18 @@ def get_balance(self, contract:str, currency:str) -> float:
try:
url = 'https://wax.greymass.com/v1/chain/get_currency_balance'
reply = self._session.post(url, json=json_payload, timeout=Account.HTTP_TIMEOUT)
assert reply.status_code == 200
balance = float(reply.json()[0].split()[0])
return balance
except ReadTimeout:
url = 'https://chain.wax.io/v1/chain/get_currency_balance'
reply = self._session.post(url, json=json_payload, timeout=Account.HTTP_TIMEOUT)
assert reply.status_code == 200
balance = float(reply.json()[0].split()[0])
return balance
assert reply.status_code == 200
balance = float(reply.json()[0].split()[0])
return balance
except:
balance = "Error retrieving values"
return balance

def get_account(self) -> dict:
"""
Expand Down
Loading