Unable to run Discord bot command in Heroku
A potential solution is to use the correct way of giving your bot a prefix:
bot = commands.Bot(command_prefix="!")
And that in Cogs commands
and listeners
are
@commands.command()async def hello(self, ctx):#code here
@commands.Cog.listener('on_ready')async def randomtext(self):#code here
Im not too familiar with heroku and what not, but i do know this
And yes i know you said it worked locally so this makes your question even more puzzling but nevertheless here is something you can try