Having a good character means to have good traits and good attitude if you have a bad character towards others then others will treat you the same way making you feel excluded or left out which can lead to loneliness or depression but if you have a good character towards people they will treat you the same way which can help you make relations with them and/or cure your loneliness.