-
Notifications
You must be signed in to change notification settings - Fork 705
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
Printing colorful EventPrediction results - and more! #82
Conversation
Added colorama to the requirements and made a simple code to print win results in green and lose results in red
This PR will close #45 Moreover, I want to suggest some changes:
from colorama import Fore
logger.info("Text", extra={"color": f"{Fore.GREEN}"}) |
@Tkd-Alex tried my best since I'm not that good on python. Also updated the documentation, but feel free to edit it as you want :) |
I'll see tomorrow 😁😁 |
Sorry today I can't test 😞 Run also |
For the rest: awesome work! And thanks for your time 🥳 |
…ileHandler. Add before the file logger and then console logger.
For me it works perfectly, I would like to suggest a different color for when a bet starts (for example blue color). Thanks for your time in improving this! |
@Yishaqel For which message in particular?
@TipicoDev do you want to do it? 😸 |
In general, messages containing the bet. Anyway I have no problem if you think of doing it differently, it is just good to know who you are betting on. |
|
Not gonna lie, would suggest adding more customization (Which colors should it use for bet win/lose) For example: |
Guys for me It's a pleasure that participate actively on this project with PR / Issue and idea 💘 We have already discussed here #45 how can be "difficult" to find a good colour palette. I've 3 ideas:
I want just to say if @TipicoDev have the time to work on It and If someone can help to find the "right colours" for each message. So we have a unique PR. |
Sorry for the delay. I've been kinda busy at work this days. |
Someone can test my last commit? 🥳 from colorama import Fore
ColorPalette(
"STREAMER_ONLINE" = Fore.GREEN,
"STREAMER_OFFLINE" = Fore.RED,
"GAIN_FOR_RAID" = Fore.YELLOW,
"GAIN_FOR_CLAIM" = Fore.YELLOW,
"GAIN_FOR_WATCH" = Fore.YELLOW,
"BET_WIN" = Fore.GREEN,
"BET_LOSE" = Fore.RED,
"BET_REFUND" = Fore.RESET,
"BET_FILTERS" = Fore.MAGENTA,
"BET_GENERAL" = Fore.BLUE,
"BET_FAILED" = Fore.RED,
) @kelukelol @Yishaqel |
This is working correctly but I recommend to add the possibility to add a color to: 26/02 11:09:01 - Place the bet after: 55.39s for: EventPrediction: Streamer (333.33k points) - Top 2 |
In |
For me it would be better in a different key to recognize who is starting a bet |
…or: EventPrediction '
…s/docker/setup-buildx-action-2.2.1 Bump docker/setup-buildx-action from 2.0.0 to 2.2.1
Description
Added colorama to the requirements and made a simple code to print win results in green and lose results in red.
Type of change
Checklist: