A
A
Abiba2282022-02-27 20:28:04
linux
Abiba228, 2022-02-27 20:28:04

How to fix the program startup code?

import os

@client.command()
async def on(ctx):
    os.system("python3 main.py")
    os.system("python3 main4.py") 


Does not start, no errors, what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
shurshur, 2022-02-27
@shurshur

Apparently, we are talking about a bot for Discord? This code won't work. And it's pretty obvious that with your current level of Python knowledge, there's no chance of getting this to work.

E
Elvis, 2022-02-27
@Dr_Elvis

Maybe because you need to call a function?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question