In house just east of the Pokemon Center in Hammerlocke, you will find a child that will check your Pokemon's Happiness. This child will give you a phrase to denote your Pokemon's current level of happiness with your trainer. If your Pokemon has maximum happiness, you this character will give you the Best Friends Ribbon.
We have questions and answers related to this topic which may also help you:
Super Cheats is an unofficial resource with submissions provided by members of the public. These are not usually tested by us (because there are so many), so please use them at your own risk.