#Button won't let me edit a message to a variable

1 messages · Page 1 of 1 (latest)

outer juniper
#

help?

main nova
#

Show the exact code

#

You are probably passing info1 as a string

outer juniper
#

i will when i’m at my pc, gimme a couple minutes

outer juniper
#

@main nova

#

this displays 'info1' instead of '111'

outer juniper
#

ive googled everywhere, idk what the problem is

outer juniper
#

any solutions?

languid mango
#

@outer juniper show the response on discord

outer juniper
#

like it responds with info1

languid mango
#

It's impossible.

outer juniper
#

it’s what happens for me :/

main nova
#

You might be overwriting it

#

Try what happens if you set the value of info1 right before the response

outer juniper
#

alright i will later today 👍

outer juniper
#

this is the only place i reference info1

#

(minus in the buttoncallback)

main nova
#

Hmm

main nova
#

Also try printing info1 and see what gets printed

outer juniper
#

it prints 111 if its outside the button_callback

#

should i try inside button_callback?

main nova
#

Yeah

outer juniper
#

thats what the message edits to

#

and this is what it prints

main nova
#

Impossible 💀

outer juniper
#

man idk

#

heres the button_callback

#

idk why it accepts info1 as a str and not a variable

main nova
#

Wait why are you sleeping for 3 seconds?

#

That will timeout the response

outer juniper
#

hm

#

ill try removing that

#

still edits to info1

#

yep no difference

#

edits to info1

main nova
#

What python version?

outer juniper
#

3.10

main nova
#

Also send pip list

outer juniper
#

oh wait

#

i mightve fixed it

#

i removed one of my commands called info1a

#

works fine now

#

thanks though