I need help with a command that used to work but isn't working anymore

As the title said, i had a command that was ‘’!myd’’ and it will tell how long your D was in cm and used to work all fine, but now it just says ‘’ Nightbot: the length of your D in ‘‘cm’’ is : Error Connecting To Remote Server’’ ‘’

What should i do to get it work?

kind regards

@isk4ll

I’m going to assume you were using a custom API to get a number that is unique and remains the same for each username. I’m not sure what custom API you used to have in your command, but I still know of a functional API that may be the fix to your problem. Delete your !myd command, then copy and paste this into chat:

!addcom -cd=5 !myd The length of your D is $(urlfetch http://nonsense.korppi.org/api/snowflake?name=$(user)&scale=0-30&round=2&noerror=1)cm

Feel free to adjust the scaling and rounding parameters as you see fit. The minimum and maximum values are currently set to 0 and 30. The value is set to be rounded to 2 decimal places.

Thx now it works fine, but if i wanna change the answer that nighbot gives to 14.1, 14.3, 14.4, 14.6, 14.8, 14.9, 15.0, 15.2, 15.6, 15.8, 15.9, 16.1, 16.3, 16.6, 16.8, 17.1, 17.3, 17.4, 17.6, 17.8, 17.9, 18.0, 18.2, 18.6, 18.8, 18.9, 19.1, 19.3, 19.6, 19.8, 20.1, 20.3, 20.4, Can’t find your penis Kappa, 20.6, 20.8, 20.9, 21.0, 22.2, 22.6, 23.8, 23.9, 24.1, 24.3, 25.6, 24.8, 12.0, 13.1547851, 14 straight, Balls is longer than D, hahahaha) as i had before, where do i change that?

Once again thank you so much for the help :slight_smile:

I want every user to get a diffrent answer aswell if it still works. Do you know how ? I didn’t quite get that in you message

If you’re looking to have Nightbot randomly pick from a list of responses, then you’ll have to use an entirely different command setup:

!addcom -cd=5 !myd $(eval a=[`14.1`,`14.3`,`14.4`,`14.6`,`etc...`];a[Math.floor(Math.random()*a.length)])

Within the command you have to create a list of responses. Notice how each response is bounded by backticks `` and separated by commas.

Ohh okay thank you so much for all the help, now it all works as i want it to <3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.