This has already been done with a bot, but it's kinda unwieldy to add new stickers and the stickers aren't actually posted in your own messages and such.
This, on the other hand, is an AutoHotKey script for sending stickers. It works like this:
- You set the path of NirCmd's
nircmd.exe
. - You set the path of ImageMagick's
magick.exe
. - You configure other options such as the directory you'll be keeping your stickers, the prefix you need to type for the sticker, and the max height of your sticker.
- Add stickers to your sticker directory. For instance, if I keep the sticker directory as
<the same directory this script is in>\stickers\
, my folder layout would look kinda like this:
- If using the rest of the config as default, typing
!shrug
in Discord would:- If it didn't exist already, create a
.sticker_cache
directory. - If there wasn't already a cached version of the sticker, it would resize the sticker and save it as
.sticker_cache\shrug.png
- The resized sticker would be copied into the clipboard with NirCmd, and pasted with
Ctrl+v
.
- If it didn't exist already, create a
Notes: Works with transparency! But only because it uses NirCmd. I swear, like nothing else ever supports transparency with clipboards, it was only by someone else saving me that I was able to get that to work. So thank them, they're a magical girl hero.