#๐ How to Fix it?
126 messages ยท Page 1 of 1 (latest)
@silent dune
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
You need to python3 -m pip install discord.py, adjusting python3 for however you invoke Python.
i insert the code? @toxic reef
at the beginning of the line
because im using phone
No, this is an install step. You do this from the command line outside Python.
I'm not sure, on a phone. I'm a UNIX CLI guy.
Basicly, you need to install this: https://pypi.org/project/discord.py/
in whatever fashion your Python environment wants third party packages installed.
How do you run Python on your iPhone?
python code editor, python editor, or termux
can u atleast help
can u help or not
if you actually answered questions with useful answers maybe someone could have helped you
i did
i lit told him what apps
this answer is useless
termux isn't even available on ios, is it?
HOLY USLESSS
IT IS
i am not jailbreaking my device to install a pip
if you have termux you have a terminal where you can run stuff, at that point working on ios isn't even too relevant
you would just pip install like usual
Pretty sure I've got termux on my phone, ios.
BRO THIS CHANNEL IS NOT USED FOR TALKING
its the company name kiddo
ITS USED FOR HELPING
its pc
the pip install
does it matter?
Termux is a terminal.
pip install is a terminal command.
Use the command python -m pip install discord.py in that terminal.
And stop yelling at folks trying to offer you help, please.
fiery is not helping
im not yelling at others
You're not listening, or they would be.
fiery isnt helping hes trying to roast me but he cant
||unoffical termux rip-off||
but really, if what you have is anything close to termux you have a linux system with a terminal
you can just run the pip commands to install stuff
the fact that you are on ios shouldn't matter unless maybe you run into architecture limitations
lock this post
Wait are you the guy that we kept telling weeks ago to not use your phone for Python development?
YO I AM NEVER USING TERMUX IOS
i joined today
honestly the termux for ios seems pretty scammy and ripped off from the official termux on android
As you're finding out, using terminal programs on a phone is not typical.
Your best bet is to run stuff on a laptop, if you have one.
There are some online solutions like using Replit or GitHub Codespaces, as well.
the actual termux is a great project
Im using xTerminal now
idk what is a good dev env for ios, so I can't help with recommendations there sadly
You can't realistically host a bot on a phone, not if you want that bot to be available for any extended period of time.
xTerminal appears to be an SSH client. If that is true, you can use it to connect to another computer running the bot.
i want it to be forever
I dont have a computer
Then you need some kind of always-online computer, e.g. a virtual server somewhere.
AFAIK, there's no real (in the sense of running a local full-fledged shell) terminal apps on iOS, because Apple disallows it.
There's decent SSH clients for logging into a remote server (I hear Termius is good), but that doesn't seem to be what you want.
I'm sorry to say it, but it appears that what you want and what is possible aren't compatible.
Also ssh client
Termius is an SSH client, it allows you to connect to a remote machine.
just curious do you have a computer (running python on random phone is definitely not something i can help with though)
I get a sense that there is no listening going on ๐ฅด
They do not, see above
my bad
python works fine on termux on android, but even that is not going to be too helpful for hosting a bot with any sensible uptime
Using free hosting options like repl.it for continuous 24/7 bot hosting is strongly discouraged.
Instead, opt for a virtual private server (VPS) or use your own spare hardware if you'd rather not pay for hosting.
See our Discord Bot Hosting Guide on our website that compares many hosting providers, both free and paid.
You may also use #965291480992321536 to discuss different discord bot hosting options.
For developing via the phone and then hosting on one of these, I'd seriously consider something like a GitHub Codespace. Store things in a repo and launch a Codespace to be able to edit and run code.
Eventually build out a way to deploy from that repo into one of those hosting solutions.
Also on A16 you get terminal app for full sandboxed machine that can help with uptime, but still not sensible for reliable uptime
It's seriously tedious simply because you're restricted to a phone, of course
oh hey, it is actually a scammy company using the termux name to get traction for an unrelated product
https://www.reddit.com/r/termux/comments/1hetuv8/comment/m26qfm0/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1
Oracle used to have, and I'm pretty sure it still have a very generous free tier for arm processor vps. But you will have to look it up.
so to circle back, this was correct and I enjoyed being screamed at for saying the actually correct thing ๐
Buy a computer that on 24/7
no dude
Or rent a vps
is there a way i can do it with a phone
No
Basically the bots up for a little bit of time
No, but there's a way to do it for free perhaps: https://www.oracle.com/cloud/free/
Read this
Then it goes down
Then it goes up when i run the code
We have said it 300 time already, not for iPhone since apple actively don't allow it
Bro what is that
what do i do with it
@viscid wharf i clicked on the link
What should i do
Just read...
It does, but you don't need to pay for the free tier
You can get a free VM. On that you can install python, the discord.py library, etc.
Using free hosting options like repl.it for continuous 24/7 bot hosting is strongly discouraged.
Instead, opt for a virtual private server (VPS) or use your own spare hardware if you'd rather not pay for hosting.
See our Discord Bot Hosting Guide on our website that compares many hosting providers, both free and paid.
You may also use #965291480992321536 to discuss different discord bot hosting options.
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.