Is it possible to host my discord.py bot on an old android phone?

Viewed 57

I've been making a discord bot for the last month and I was wondering if I could run it on my old phone (AXON 7 mini). Is it possible to do this? That would make it a lot easier to run the bot since I don't own a raspberry pi and the replit+UptimeRobot Method doesn't work. Would os.path.join() work on android?

If anyone knows how to do this, (if it is even possible) please let me know!

(I have the main.py file and some .txt and .png files on my Windows 10 laptop)

1 Answers

I believe you could host it, however this would require you to write an app for it. This app would create a foreground service that you could "force" to stay alive. This service would be where you run your app's logic from. It would not be as simple as dropping the python code and associated files onto the device.

Related