mrryyi / dbot

0 stars 0 forks source link

"name add ..." should result in the first letter of each word of the name to be capitalized #16

Open mrryyi opened 3 weeks ago

mrryyi commented 3 weeks ago

Right now, the following happens when a user of the bot adds a name.

name add Klas Klasson

Result: klas klasson is added.

Desired result: Klas Klasson is added.

name add kLaS kLaSsOn

Result: klas klasson added.

Desired result: Klas Klasson is added.

Should match what the readme says. - the first letter of each word should be capitalized. Not at the data layer, but at the discord response layer - should capitalize before we send to the insert function. The data layer should still just insert whatever is given. This will have the bonus effect of not requiring review of database operation unit tests - they expect the name they submit to be the name that is inserted.

This is probably a one-liner, I think I remember there being a capitalization-of-first-letter-of-each-word method for strings.

Vishnu-sai-teja commented 3 weeks ago

Hey @mrryyi can I take this up ?

mrryyi commented 3 weeks ago

@Vishnu-sai-teja Go ahead! ^^