quote:
Originally posted by Hengy
if(Msg == "!picknum") {
return "Pick a number between 1 and 100";
var rndnumber = Math.random() * 100;
}
You should not use return there.
Keyword "return" exits from the current function and returns a value from that function (form
here)
And you have extra curly brackets, too