Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
ready for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
adistomar committed Jun 16, 2022
1 parent d48ef1e commit 0ee3431
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 20 deletions.
30 changes: 17 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
# typeracer-cheat
A program that allows one to achieve extremely high speeds on typeracer.com on all game modes.
### How it looks:
![](https://user-images.githubusercontent.com/59426357/114341733-4dfa5c00-9b0f-11eb-9ae9-9a4145a42e46.gif)
### How to setup:
* Click on the `Releases` button, find the release that matches your OS, and download the zip file
* Install Selenium by going to terminal and running `pip3 install selenium`
* Install Tkinter by running `pip3 install tk`
### How to run:
* Open terminal
* Locate the folder where you downloaded the program: `cd <folder>/typeracer-cheat...` where folder is Downloads, Documents, etc.
* Run `python3 typeracer.py` on MacOS or `python typeracer.py` on Windows
### Changing typing speed
* To change the typing speed, locate this line in `typeracer.py`:

## Demo:


## Install:
#### Python 3.6 or higher is required
```sh
pip3 install typeracer_cheat
```

## Usage:
To run cheat, enter `type_cheat` in command line.


## Change typing speed
To change the typing speed, locate this line in [`main.py`](https://github.com/RoastSea8/typeracer-cheat/blob/master/typeracer_cheat/main.py):
```python
time.sleep(.009)
```
* Change the value inside the parentheses - `.009` means that the typing speed is 1 character every .009 seconds, or 1 character every 9-thousandth of a second
Change the value inside the parentheses: `.009` means that the typing speed is 1 character every .009 seconds, or 1 character every 9-thousandth of a second.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[metadata]
description-file = README.md
41 changes: 41 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# coding: utf-8
from setuptools import setup


with open('README.md') as readme_file:
long_description = readme_file.read()


setup(
name="typeracer_cheat",
version="0.0.1",
author="RoastSea8 (Aditya Tomar)",
author_email="[email protected]",
description="A program that allows one to achieve extremely high speeds on typeracer.com on all game modes.",
license="MIT",
keywords=['typeracer', 'cheat', 'typeracercheat', 'typecheat', 'typefast', 'chromedriver', 'selenium', 'onlineraces'],
url="https://github.com/RoastSea8/typeracer-cheat",
packages=["typeracer_cheat"],
entry_points = {
'console_scripts': ['type_cheat=typeracer_cheat.command_line:type_cheat'],
},
install_requires=['selenium', 'chromedriver_autoinstall'],
long_description_content_type="text/markdown",
long_description=long_description,
python_requires=">=3.6",
classifiers=[
"Development Status :: 4 - Beta",
"Topic :: Software Development :: Testing",
"Topic :: System :: Installation/Setup",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
],
)
1 change: 1 addition & 0 deletions typeracer_cheat/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from typeracer_cheat import main
4 changes: 4 additions & 0 deletions typeracer_cheat/command_line.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from typeracer_cheat import main

def type_cheat():
main.main()
File renamed without changes
12 changes: 5 additions & 7 deletions main.py → typeracer_cheat/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
root = Tk()

root.title("TypeRacer Cheat")
root.iconbitmap("logo.png")
root.iconbitmap("typeracer_cheat/logo.png")

logo = PhotoImage(file="logo.png")
logo = PhotoImage(file="typeracer_cheat/logo.png")
logo1 = logo.subsample(2, 2)
Label(root, image=logo1).grid(row=0, column=2, columnspan=2, rowspan=2, padx=5, pady=5)

username = ""
password = ""
chromedriver_autoinstall.install()
if chromedriver_autoinstall.get_platform() == "mac":
os.chmod('./chromedriver', 0o755)
PATH = "./chromedriver"
driver = None
started = False
Expand All @@ -45,8 +47,6 @@ def get(event):
global driver
username = str(event.widget.get())
password = str(event.widget.get())
if chromedriver_autoinstall.get_platform() == "mac":
os.chmod('./chromedriver', 0o755)
driver = webdriver.Chrome(PATH)
driver.get("https://play.typeracer.com/")
login()
Expand Down Expand Up @@ -172,6 +172,4 @@ def main():
else:
pass
if isDriverClosed():
exit()

main()
exit()

0 comments on commit 0ee3431

Please sign in to comment.