Help with a command

Asked Dec 14, 2021·7 replies·Last activity 4 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Can anyone tell me why this is not working?

!editcom !test $(eval let _s='$(query)';let url='https://pastebin.com/raw/7bmmWkpG'; $(urlfetch url))

I get unexpected identifier all the time

7 replies

Hiya, there's no way to help, the pastebin doesn't exist anymore.

It works like this

!addcom !test $(eval let _s='$(query)'; $(urlfetch https://pastebin.com/raw/7bmmWkpG))

But why it doesn't work when i store the url in a variable and use that variable in urlfetch

I think because the urlfetch is executed first, so a js variable as link inside urlfetch won't work.

@Bright Ram Hi, seems you are reversing the phrase. Try this:

!addcom -cd=5 !test $(eval `$(query)`.split('').reverse().join(''))

Hope it works.

Regards

Thanks but I'm trying to do this

!ac !test $(eval let _u='$(user)';let cmds=($(urlfetch json https://pastebin.com/raw/GBnicTfi));let _q='$(query)'.replace(' ','ð—”§').split('ð—”§');let _s=_q[1]; $(urlfetch cmds[_q[0]]))

The pastebin

https://pastebin.com/raw/GBnicTfi

I was thinking it will work like this -->

!test reverse hi

1 - _q='$(query)'.replace(' ','ð—”§').split('ð—”§') will split the user input into two parts

2 - cmds[_q[0]] will look for the property in cmds and return its value which is a link
3 - then urlfetch will fetch the url which contains javascript and $(eval ...) will evaluate the script

And same for other

Hi @Bright Ram First make sure that Pastebin link is public.

Didn't find your answer? The community is on Discord.

Ask on Discord