There are a fair number of resources discussing the makings of a Discord bot using the discordpy library, and a fair number more discussing hosting on Heroku. Yet information seems to be scarce when these two subjects are brought together.
When I first started building Discord bots, I had all my code jumbled into a single file titled
bot.py. As my knowledge and programming ability progressed, I soon learned about the beauty of cogs as a way to organize commands into their corresponding groups. In my most recent project, I decided to implement the dblpy API to receive a webhook when a user voted for my bot. …