cordless
cordless copied to clipboard
"Custom" "Emojis" - basically, image upload macros
What do you want
I want to type in DMs without paying for Nitro...
Why
Because I'm extremely frugal...
Implementation hints
Jokes aside, this is pretty much just another "macro" where a particular pattern of characters triggers an action.
In this case, the characters would be :[a-zA-Z0-9]+:
and the action would be to upload some arbitrary image.
May or may not be useful - a bit silly I know, considering the actual user wouldn't even see the image. But... worth writing anyway I guess 🤷♂
tbh, could actually do this via a JS script :man_shrugging: Or did you think of attaching files instead of image links? Could just extend the JS API in that case :man_shrugging:
That sounds like a much better and more generic solution 👍
Hm, actually I just rememered, that I wanted to avoid the scripts to be able to access the internet / your local network / harddrive, therefore this might not actually work :thinking:
However, maybe what I need is a permissions system of some kind. Depending on how far I take the scripting, I want to have some kind of package manager thing that allows installing packages via a URL; those can then request certain permissions and interface with the respective functions.
aaaaand there's the scope-creep :D