There’s no specific, medical treatment for boredom. However, there are tons of solutions if you’re experiencing boredom. For example, you may want to consider trying some new hobbies or other new diversional activities. Joining a club can be a good way to thwart your boredom. Reading clubs, hobby groups, or exercise groups are all great places to start. Joining a community group that organizes activities and outings is another good idea.
“Alcohol makes other people less tedious, and food less bland, and can help provide what the Greeks called entheos, or the slight buzz of inspiration when reading or writing. The only worthwhile miracle in the New Testament—the transmutation of water into wine during the wedding at Cana—is a tribute to the persistence of Hellenism in an otherwise austere Judaea. The same applies to the seder at Passover, which is obviously modeled on the Platonic symposium: questions are asked (especially of the young) while wine is circulated. No better form of sodality has ever been devised: at Oxford one was positively expected to take wine during tutorials. The tongue must be untied. It's not a coincidence that Omar Khayyam, rebuking and ridiculing the stone-faced Iranian mullahs of his time, pointed to the value of the grape as a mockery of their joyless and sterile regime. Visiting today's Iran, I was delighted to find that citizens made a point of defying the clerical ban on booze, keeping it in their homes for visitors even if they didn't particularly take to it themselves, and bootlegging it with great brio and ingenuity. These small revolutions affirm the human.”
The French loanword ennui comes from the very same Late Latin word that gave us annoy — inodiare ("to make loathsome"). We borrowed ennui several centuries after absorbing annoy into the language. Ennui deals more with boredom than irritation - and a somewhat specific sort of boredom at that. It generally refers to the feeling of jadedness that can result from living a life of too much ease. The poet Charles Lloyd described it well in his 1823 Stanzas to Ennui when he referred to that world-weary sensation as a "soul-destroying fiend" which visits with its "pale unrest / The chambers of the human breast / Where too much happiness hath fixed its home."