Git Product home page Git Product logo

bruh's Introduction

SpamBot

What is this?

Created just for fun.
This is my first attempt to create a usable (not really) GUI interface for a python script.

Functionality

  1. SpamBot (Ctrl+V)
  2. ClickBot
  3. Text-only chat room
  4. Updates checking

Installing

First, create a virtual environment:

pip install -U virtualenv
virtualenv venv --clear
venv\scripts\activate

Install dependencies:

pip install -U -r requirements.txt

(Optional) If you want to package the app, install pyinstaller:

pip install pyinstaller      

Then run! The source files are located at /src/

commandline interface: python3 src/cli.py
gui interface: python3 src/gui.py

Packaging using PyInstaller

(Optional) Optimize file size by excluding useless packages:

set Excludes=--exclude _asyncio --exclude _bz2 --exclude _decimal --exclude _hashlib --exclude _lzma --exclude _multiprocessing --exclude _overlapped --exclude _queue --exclude lib2to3 --exclude difflib --exclude distutils --exclude pickle

Set my custom hook for pyinstaller and icons:

set Resources=--additional-hooks-dir utils
set Icons=--icon "src/res/riva.ico"

Finally, build both the cli and gui versions:

pyinstaller -y --clean -n "spambotcli" src/cli.py --version-file "utils/cli.txt" %Excludes% %Resources% %Icons%
pyinstaller -y --clean -n "spambotgui" src/gui.py --version-file "utils/gui.txt" -w %Excludes% %Resources% %Icons%

If you want the executable output be one file, add the --onefile flag:

pyinstaller -y --clean -n "spambotcli" src/cli.py --version-file "utils/cli.txt" %Excludes% %Resources% %Icons% --onefile
pyinstaller -y --clean -n "spambotgui" src/gui.py --version-file "utils/gui.txt" -w %Excludes% %Resources% %Icons% --onefile

(Beta) PyInstaller Splash screen:
Add --splash riva.ico to the pyinstaller command

PyInstaller Documentation: Here

File structure

.github/workflows   # Github Actions
src/*.py            # Codes
src/get             # Server lists for chatroom and version lists for checking updates
src/res             # resources(images,audios) for the program 
utils/hook-utils.py # PyInstaller hook
utils/*.iss         # Inno setup scripts
utils/*.txt         # windows metadata for the program 
.gitignore          # gitignore 
LICENSE.txt         # License file
README.md           # This file 
requirements.txt    # Dependencies

Appreciation

I would like to thank the following people:

  1. PyInstaller devs (specifically bwoodsend, rokm, Legorooj)
  2. My friends who helped me to test the program
  3. And you, for reading this README.md

bruh's People

Contributors

eric15342335 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.