Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences here.
×
×
Cookie Preferences
We use Cookies to help personalize and improve Roll20. For more information on our use of non-essential Cookies, visit our Privacy Policy here.
Sorry if this is a noob question, but is there a minimum length for an API's name? I can create the exact same script, and if I call it "sohroll" it works but if I call it "soh" it doesn't, it doesn't seem to do anything.
Not that I'm aware of... but sometimes people refer to things like a script's name as different things... so can you post your code... at least the dozen or so lines around you naming your script? That will make sure we're all on the same page about what we're thinking about.
Never mind. It was nothing so arcane as that. It was just that the second literal in line 2 had to match the filename. When I copied the script Ieft the old filename in place. I'm an idiot. Thanks
Matthew S. said: Never mind. It was nothing so arcane as that. It was just that the second literal in line 2 had to match the filename. When I copied the script Ieft the old filename in place. I'm an idiot. Thanks That shouldn't be a requirement. Example: the command for TokenMod.js is "!token-mod". The command for JukeboxPlus.js is "!jbplus".
Fair enough, it's not that the chat box command needs to match the file name; it needs to match the second literal. But I don't see any value in not having both match the file name, at least as a default. Thanks for your trouble.