Are you a developer who's tired of seeing the same boring errors in your code? Want to turn debugging into an adventure? Look no further—nogenshin is here to save the day (and your sanity)!
nogenshin is the Python library that transforms your coding errors into epic, open-world fun. Say goodbye to stack traces and hello to Teyvat! When your code blows up, any function wrapped with @nogenshin.start will launch Genshin Impact and whisk you away from debugging woes.
And that's not all! With the new @nogenshin.stop in v0.2.0, you can finally stop Genshin when your bugs are getting serious. Yes, you can bring yourself back from your virtual world (but let’s be real, why would you want to?).
Get ready to face your coding challenges head-on (or ignore them while playing Genshin):
pip install nogenshin
# Or, if you're feeling extra adventurous (or have Paimon-like energy):
pip install git+https://github.com/Charley-xiao/nogenshin.gitNote: Genshin Impact must be installed on your system. If it’s not, we can't help you there. Go download it first—priorities, people!
import nogenshin
@nogenshin.start
def buggy_function():
print("Hold on, this will break...")
raise ValueError("Oops!")
buggy_function() # Time to journey into Teyvat!When an error occurs, instead of frantically debugging, nogenshin will take you on a nice relaxing trip to the world of Genshin. Perfect timing to roll for a new 5-star character or just go vent your frustration on some slimes.
For when you actually need to, you know, stop playing Genshin (tragic, I know):
@nogenshin.stop
def stop_playing():
print("This code has issues... stopping Genshin Impact.")
raise RuntimeError("Time to get serious!")
stop_playing() # Back to reality (but why?)When your code crashes again and you realize maybe you should actually fix something, @nogenshin.stop will gasp close Genshin Impact. Yes, I know. It’s painful. But debugging is hard work, and eventually, someone’s got to do it.
Because life is short, and debugging is long. Why face your errors alone when you could have Paimon by your side?
- Write code (preferably the kind that works).
- Wrap your error-prone functions with
@nogenshin.startor@nogenshin.stop(because who needs normal debugging?). - When an exception happens, Genshin Impact either starts or stops.
- Embrace the chaos.
- Profit (or suffer in silence).
A: Absolutely not. But you’ll feel better about your life choices.
A: Why not? Coding errors deserve to be met with an epic game, don’t they?
A: That’s between you and your error logs. Best of luck.
A: Technically, yes. Set the GENSHIN_PATH environment variable to the path of any executable game. But honestly, why would you want to play something else?
A: Why would you even ask that?
This library is not guaranteed to improve your coding skills. It may reduce productivity by introducing distractions, but will likely enhance your overall mood (especially after you finally get that 5-star pull). Use at your own risk, and don't blame us if you lose track of time and end up adventuring instead of debugging.
nogenshin: Turning your code errors into an adventure, one bug at a time. Now go out there and either code… or lose yourself in Genshin Impact. Your call.
MIT © Charley Xiao
Issues and pull requests are welcome! Feel free to contribute and join the madness! 😊