Yes, the phone controls the bot but does not run it
Yes. A server runs the bot around the clock, and your phone only controls it. With the iOS app or the Android app, you can create a Discord bot deployment, connect its code from a GitHub repository, paste the bot token, start it and read its live logs. Turn on notifications and the app alerts you if the bot stops unexpectedly. A computer isn’t required at any point. The free Spark plan runs one bot with 256 MB of memory. Renew it in the app every 7 days.
The whole setup on a phone
- Create the bot. In your phone’s browser, open the Discord Developer Portal and create an application. On its Bot page, reset and copy the token. If a button is missing, switch the browser to the desktop site.
- Put the code on GitHub. On github.com, create a repository, public or private, and add your files with Add file → Create new file. A discord.js bot needs
package.jsonand its entry file. A discord.py bot needsrequirements.txtand its entry file. Never paste the token into a file. - Create the deployment. In the Bothosting app, tap New deployment, choose Discord bot and pick the profile for your language.
- Connect GitHub. Open Deploy, enter
owner/repositoryand the branch. Each start pulls that branch. - Save the token. Open Token & variables and paste it into
BOT_TOKEN. - Start and watch. Tap Start, then open Logs. The bot is working when it logs in without an error.
- Stay informed. Allow notifications when the app asks. In Settings, turn on Restart on crash so the bot comes back by itself.
Then invite the bot to your server from the portal’s OAuth2 page, using the bot and applications.commands scopes.
Where does the code come from?
The app edits files that already exist, but it doesn’t create new ones. GitHub is the easiest place to write code from a phone. If you asked ChatGPT, Claude or another assistant to write the bot, copy each file into GitHub and keep the names it gave you. Make sure the code reads the token from the environment.
client.login(process.env.BOT_TOKEN);import os
bot.run(os.environ['BOT_TOKEN'])Public and private repositories work on every plan, including Spark. Never commit the bot token. For a private repository, save a read-only GitHub token in GIT_TOKEN. Add the push webhook on the website, which works in your phone’s browser. After that, each commit you make on GitHub redeploys the bot by itself. Without the webhook, tap Pull latest and redeploy in the app after a change.
If the bot stays offline
Read the first error in Logs. A missing module points to package.json or requirements.txt. An invalid token means the token was reset or pasted with extra spaces. A bot that logs in but ignores commands is usually a scope or intent problem. See missing slash commands and why a bot goes offline.