Hi, I am having trouble getting my bot to work with my URL shortener API. I've been trying to use curl to shorten a url from the channel, but i don't know how to get teh shortened url so the bot can output it in the channel. Also i can't get the bot to actually shorten the url, it keeps saying error. any help would be greatly appreciated. Here is what i have so far.
A good start would be to print the actual content of $result once you've done your call to exec, as this will hold either the error reason, or the result from curl.