You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,27 +20,29 @@ If you still think there is a suspicious line, you can [ask us about it, and war
20
20
### Usage:
21
21
- Download and Install [python 3.6+](https://www.python.org/downloads/) and [add to path](http://prntscr.com/uwvy5z). (Android users click [here](https://github.com/e-sim-python/scripts/issues/2#issuecomment-698446627)).
22
22
- Download the e-sim library as a zip file ([Code -> download ZIP](https://github.com/e-sim-python/scripts/archive/master.zip)) and extract it. (If you can't extract, [download WinRAR](https://www.rarlab.com/) first)
23
-
- At the first run, you will have to excute[install_packets.py](https://github.com/e-sim-python/scripts/blob/master/Help_functions/install_packets.py), or install `requests` and `lxml` manually (type `pip install requests` on your start menu, or`py -m pip install requests` on your CMD). ([More help for this step](https://packaging.python.org/tutorials/installing-packages/))
23
+
- At the first run, you will have to execute[install_packets.py](https://github.com/e-sim-python/scripts/blob/master/Help_functions/install_packets.py), or install `aiohttp` and `lxml` manually (type `CMD` at your start menu, and`py -m pip install aiohttp` at your CMD). ([More help for this step](https://packaging.python.org/tutorials/installing-packages/))
24
24
- Double click (in your computer) on any script you want, or right click -> open with IDLE.
25
-
- Alternative (advanced): import the function to another script ([examples](https://github.com/e-sim-python/scripts/blob/master/bot.py)). If you need help, execute `print (function_name.__doc__)`
25
+
- Alternative (advanced): import the function to another script ([examples](https://github.com/e-sim-python/scripts/blob/master/bot.py)).
26
26
27
27
### Few notes:
28
28
- You can edit the scripts by right click on it -> edit with IDLE, or click "Fork" at the top of this page.
29
29
- Everything written after the pound (#) in the same line, is a note that can help you understand the code, or for the developers.
30
30
- Every line with `input` can be replaces (instead of typing the same choice every time you run the script). For example: `server = input("Server: ")` can be replaced into `server = "alpha"`.
31
31
32
-
The uploaded scripts (Basic folder mainly) are mostly raw, and they can be used in many other ways.
32
+
Those scripts (Basic folder mainly) are mostly raw, and they can be used in many other ways.
33
33
34
34
**Beginner idea:**
35
-
- Add `time.sleep(time_in_sconds)` at the beginning of the script to do action with a delay (For example: Bid auctions just before it's end, propose a law while you are sleeping etc.)
35
+
- Add `await asyncio.sleep(time_in_sconds)` at the beginning of the script to do action with a delay (For example: Bid auctions just before it's end, propose a law while you are sleeping etc.)
36
36
37
37
**Advanced idea:**
38
-
- Run the [discord bot](https://github.com/e-sim-python/scripts/blob/master/bot.py) in each of your trusted group devices, and let everyone do specific actions in each other accounts (fight, vote laws etc.).
38
+
- Run the [discord bot](https://github.com/e-sim-python/scripts/blob/master/bot.py) in each of your trusted group devices, and let everyone do specific actions in each other accounts (fight, vote laws etc.) (you will have to install `discord.py`)
39
39
- Alternative, you can do that with multies and VPS ;)
40
40
41
41
### Errors:
42
42
- First try to search for solution online.
43
-
- For example: `ImportError: No module named requests` -> [google search](https://www.google.com/search?q=No+module+named+requests) will tell you how to install packet (via pip). In that specific error you can also run [install_packets.py](https://github.com/e-sim-python/scripts/blob/master/Help_functions/install_packets.py)
43
+
- For example: `ImportError: No module named aiohttp` -> [google search](https://www.google.com/search?q=No+module+named+aiohttp) will tell you how to install packet (via pip). In that specific error you can also run [install_packets.py](https://github.com/e-sim-python/scripts/blob/master/Help_functions/install_packets.py)
44
44
- Sometimes all you need is to login via script again, because your cookies are too old.
45
45
- See if there are updates in the code source.
46
46
- If you believes that the error is made by us, you can describe it [here](https://github.com/e-sim-python/scripts/issues) and we will try to fix. This is also the place for suggestions and any contact.
0 commit comments