#๐Ÿ”’ how to fix this if he said no it should cancel it

39 messages ยท Page 1 of 1 (latest)

silver rockBOT
#

@golden cairn

Python help channel opened

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.

golden cairn
#
name = input("what is your username? ")
age = input("can you handle daily update? (yes/no) ")
if age.lower() == "yes":
    print("Continuing...")
elif age.lower() == "no":
    print("Cancelling...")
else:
    print("Please enter yes or no.")
if age.lower() == "no":
    print("Thank you for your survey")
answer = input("Do you want to continue? (yes/no)")
if answer.lower() == "yes":
    print("Continuing...")
else:
    print("Please select image of your account dps, gems, rank")
proper tendon
#

What should be cancelled what is issue here?

golden cairn
#

when they say no to the question it should cancel every single one

gritty quail
golden cairn
gritty quail
#

!d sys.exit

silver rockBOT
#

sys.exit([arg])```
Raise a [`SystemExit`](https://docs.python.org/3/library/exceptions.html#SystemExit) exception, signaling an intention to exit the interpreter.
proper tendon
#

Yeah also exit() works too

golden cairn
#

lemme try

gritty quail
proper tendon
#

Okay?

golden cairn
proper tendon
#

Import sys is missing

#

And also why arg

golden cairn
#

it worked now

gritty quail
proper tendon
golden cairn
#

and how do i send image on it

gritty quail
#

the bot just spits out the official python documentation

gritty quail
golden cairn
#

like dropping a file of image or selecting file

#

for example i wanna drop this image in python

gritty quail
golden cairn
gritty quail
golden cairn
#

im making a bot

#

in discord

gritty quail
#

aha, how would we know that you are doing a discord bot in python?

golden cairn
#

a bot will use the python i made

gritty quail
#

anyways, i don't know anything about making discord bots

golden cairn
#

ima use website

golden cairn
silver rockBOT
#
Python help channel closed using Discord native close action

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.