Skip to content

TheLime1/CheatoMate

Repository files navigation

cheatomate

CheatoMate

SCRIPTS

Script Description Setup Usage
ai_helper.py GPT-4 AI chat in terminal Bing Setup* Ai helper
network_card.py Activate/Deactivate network card with a shortcut Setup network_card.py Network Card
chat/terminal_chat.py Chat with your friends in terminal in real time Setup terminal-chat.py Terminal Chat
var_changer.py Change the name of the variables/functions/classes in any code base Bing Setup* Var Changer
exam2txt.py Convert PDF and image files into text files Poe Setup Exam2txt

*: not required

Installation

pip install -r requirements.txt

Prerequisites

  • Python 3.9+
  • Microsoft account with access to bing copilot (recommended but not required)

Setup

Bing Setup

  1. Go to the Copilot web page.
  2. Open the developer tools in your browser (usually by pressing F12 or right-clicking on the chat dialog and selecting Inspect).
  3. Select the Network tab to view all requests sent to Copilot.
  4. Write a message on the chat dialog that appears on the web page.
  5. Find a request named create?bundleVersion=XYZ and click on it.
  6. Scroll down to the requests headers section and copy the entire value after the Cookie: field.
  7. Paste it to config.ini

Tip

you can use Bing scripts without the cookies but you will have a limited number of requests (5 per chat session)

Poe Setup

  • Log into Poe on any web browser, then open your browser's developer tools (also known as "inspect") and look for the value of the p-b cookie in the following menus:
    • Chromium: Devtools > Application > Cookies > poe.com
    • Firefox: Devtools > Storage > Cookies
    • Safari: Devtools > Storage > Cookies

Paste the value of the p-b cookie into config.ini

Setup network_card.py

  • in terminal type wmic nic get name, index and find the name of your network adapter
  • paste it into config.ini

Setup terminal-chat.py

Usage

use Ai helper

  • Run python ai_helper.py and chat with the FREE GPT-4 AI
  • you can use custom commands like:
Command Usage
!reset Start new conversation
!exit exit the code
!paste paste clipboard
!export save chat to txt file

use Network Card

  • Run python network_card.py
    • press Numpad1 + Numpad3 to deactivate your network adapter
    • press Numpad7 + Numpad9 to activate your network adapter

use Terminal Chat

  1. first you need to activate the virtual environment

Windows

# change to the generated terminal-chat directory
cd terminal-chat
# activate environment
Scripts\activate

Linux

# change to the generated terminal-chat directory
cd terminal-chat
# activate environment
source bin/activate
  1. run terminal_chat.py
  2. pick a nickname
  3. start chatting !

use Var Changer

  1. put your codebase in a folder called exam in the same directory as var_changer.py
  2. run var_changer.py
  3. the script will modify the the codebase and zip it in a file called modified.zip

use Exam2txt

This script is used to convert PDF and image files into text files using the Poe API. It takes a file path as an argument from the command line. If no file path is provided, it will look for PDF and image files in the current directory.

Here's how to use it:

  1. Run the script from the command line with a file path as an argument. The file should be a PDF or an image file (JPEG, PNG, or JPG).
python exam2txt.py /path/to/your/file.pdf
  1. If you don't provide a file path, the script will look for PDF and image files in the current directory.
python exam2txt.py
  1. The script will convert the provided file or the files in the current directory into text using the Poe API. If there are image files but no PDF files, it will first convert the images into a PDF file.
  2. The extracted text will be saved in a text file with the same name as the original file.

About

A collection of scripts to "help" you with your programming exams and assignments.

Topics

Resources

License

Stars

Watchers

Forks

Languages