_ ___ /\/\ (_) / _ \_ _ / \ | |/ /_)/ | | | / /\/\ \| / ___/| |_| | \/ \// \/ \__, | |__/ |___/
An unofficial Midjourney client
pip install mjpy
mjpy "cute cats playing football" -ch YOUR_CHANNEL_ID -g YOUR_GUILD_ID -t YOUR_TOKEN
MjPy can be easily installed by pip using:
pip install mjpy
The pip way is recommended because it adds the script to the path automatically in mac and linux, and installs the needed dependencies automatically.
or you can use it using git clone command:
git clone https://github.com/ASafarzadeh/mjpy
The pip way does all the installations for you, but in the git clone way you should install the dependencies if they arent already installed. Mjpy depends on requests
python module.
You can install that with the command below:
python -m pip install requests
Now you can navigate to Mjpy directory, and use it as the example below:
python mjpy.py "cute cats playing football" -ch YOUR_CHANNEL_ID -g YOUR_GUILD_ID -t YOUR_TOKEN
Short Form | Long Form | Description |
---|---|---|
prompt | The prompt to be used if the command is imagine | |
-g | --guild-id | Your GUILD_ID |
-c | --channel-id | Your CHANNEL_ID |
-t | --token | Your Authorization_Token |
-v | --verbose | Enable Verbosity and display the process in realtime(Default: False) |
-o | --output-dir | Where to save the Generated images(Default: current dir(.)) |
-h | --help | show the help message and exit |
Any contributions you make are greatly appreciated!
If you have a suggestion that would make MjPy better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
MjPy is Distributed under the GNU GPL license. take a look at the LICENSE for more information.