aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/helpers.py
diff options
context:
space:
mode:
authorGravatar bradtimmis <[email protected]>2021-09-11 09:57:13 -0400
committerGravatar Chris Lovering <[email protected]>2021-10-05 16:42:47 +0100
commit4e316e7991862db76b78e16019c02461c3c52fc2 (patch)
tree97c2ecff9fa3062c31b7ce811c238648e5b23158 /bot/utils/helpers.py
parentAdded "colour information" and "colour conversion" features (diff)
Add fuzzy match function
I made a few changes, the biggest being the fuzzy match function to return a hex color code based on an input color name. Open items that I can think of so far: -Since the json file has color names and hex values, in order to use fuzzy matching for a color name the color must first be converted to hex. Currently there is only a rgb to anything function which returns values in a dictionary. -The main embed creation references the rgb_color before it is defined, should the command function be moved to the bottom of the file or just the main embed creation and sending? -When using the rgb mode, should the user be forced to do (r, g, b) or should the command handle an input of "r, g, b"? If you are reading this, thank you.
Diffstat (limited to 'bot/utils/helpers.py')
0 files changed, 0 insertions, 0 deletions