Im trying to host my Discord Bot, in python, on Heroku. But the requirements.txt cant download the webbrowser and time module.
First of all, yes I do know webbrowser is an integrated module from Python. But when I use the Discord bot, for example, to open Twitter it doesn`t work. Ive tried many times with reuploading the script to Heroku. But when Im writting "webbrowser" into the requirements.txt it cant find it.
line to open twitter per command:
if message.content == "/tw":
webbrowser.open("https://www.twitter.com")
It should display:
downloaded webbrowser from path/path/... (<-- just an example)
But then that comes:
error, can`t find a module named webbrowser.py
or
error, can`t download webbrowser.py
When I include Lib/webbrowser.py:
Lib/webbrowser.py seems like a path. Is it really one?
Or, when the build failed:
Could not find a version that satisfies the requirement webbrowser
The imports i used in the project:
- discord
- webbrowser
- time
- asyncio
The modules in the requirements.txt(without the webbrowser module):
- git+https://github.com/Rapptz/discord.py
- dnspython==1.16.0
- PyNaCl==1.3.0
- async-timeout==3.0.1