I was wondering if is it possible to host a Discord bot made in Python here, on Cloudflare. I need someone to reply telling me if this is possible, and if it is, how to do it, or what service to use.
There are some things that will probably necessary (necessary, not necessary but good to have), such as: - Python 3.9+ - Pip: to install some packages, such as
discord
discord
,
requests
requests
,
shuttleai
shuttleai
,
google.generativeai
google.generativeai
,
sqlite3
sqlite3
,
psutil
psutil
,
flask
flask
(read next section). - ~50mb storage: or more, but that should be enough. - SSH: to check the built-in logs that the code has, if something goes wrong. - Linked to a domain/subdomain
The bot also hosts a website at 0.0.0.0 (any) using a Flask server, which is also built-in, and can be disabled if it isn't possible to have it linked to a domain or a sub-domain.