-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added Feature: (soft) editable Default Settings #17
Conversation
I took a quick glance, and there are a lot of changes here. Going to have to take a thorough look at it later. Generally, I want stablecog.py to only contain the /draw slash command. It's where the magic happens so I want to try to keep it as focused and easy to understand what's going on in there. If you can, move these slash commands to their own file, like defaultscog.py or something (I'm not great with names). You can see tipscog.py on how I have a self-contained slash command. I think it also could be condensed down to 1 slash command. I think slash commands need at least 1 required argument which could be the function to view the current options, then the optional arguments are what user wants to update with. Sorry, I know I'm asking a lot, probably; I really like neat and tidy. The feature is great. It's definitely a pain sometimes to repeatedly put in negative prompts. 😅 Also, yeah idunno how to dynamically get the sampler methods yet too lol |
Alright, I'll get to it, hopefully pycord will have mercy on my soul now |
lol that's me like every day I work on this bot. But in ~1 month I went from zero Python experience, to kinda understanding what I'm looking at. You can keep the PR open and I'll try to help where I can. |
Note: I considered merging settings and settingscog but I think it's more organized this way |
This is done and ready for review now? 🤔 I see it's set as ready, but there's some commits afterward. |
should be ready now (?) |
Nice, I'll look at it in-depth later today or tomorrow. Seems to work mostly, there are some minor bugs and mostly cosmetic things which I can handle, but looks good overall. I'll post an update later with any changes I may do. |
All right, I went through the PR and tested it as extensively as I could. I'll have to make a fairly large amount of changes.
edit: Want to add, I appreciate the new feature and that you made a PR. I know I change a lot to fit the idea of the "aiya style", but going in and making PRs is a huge help. 👍👍 |
described in #17 (comment) also make code a bit more "pythonic"
Wow, that's quite a lot. |
It did take a little while, but in the end it was mostly cosmetics and shuffling some stuff around. You did the heavy lifting by creating the code in the first place 👍 |
Would it be possible to add batch count and face restoration to the settings? I like the new settings command by the way. |
Face restoration, I think is part of the standard payload so it should be as simple as putting Since it seems simple to add, I'll play around with adding an additional option for face restoration soon and see how I feel about it. |
Most boolean choices could perhaps be turned into discord buttons |
Default Settings can now be edited by using Slash Commands!