i can´t make this command work :c

Asked Apr 16, 2025·1 reply·Last activity 1 year 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.

hi, i´ve been trying to make this command and i can´t make it work :c

!hitman @$(user) has hired a hitman to kill @$(touser). The hitman went to the park where he met the target, $(eval let endings = $(urlfetch https://pastebin.com/raw/tZgABNWs).split(";"); endings[Math.floor(Math.random() * endings.length)])

can you help me please?

1 reply

You can use the following:

!commands add !hitman @$(user) has hired a hitman to kill @$(touser). The hitman went to the park where he met the target, $(eval let endings = `$(urlfetch json https://pastebin.com/raw/tZgABNWs)`.split(';').filter(e => e.trim().length > 0); endings[Math.floor(Math.random() * endings.length)])