1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-22 23:04:22 +00:00
config-fish/functions/gen-emoji-discord.fish

11 lines
477 B
Fish
Raw Normal View History

2024-08-21 20:07:01 +00:00
which magick --skip-functions >/dev/null 2>/dev/null
if [ $status -eq 0 ]
function gen-emoji-discord --wraps=magick
log-t "Creating" "Discord" "directory..."
command mkdir --parents "Discord"
2024-08-21 20:42:30 +00:00
log-d "Processing" "$argv[1]" "for Discord use..."
2024-10-28 11:40:50 +00:00
command magick -background none "$argv[1]"'[128x128]' -gravity 'center' -extent '128x128' $argv[2..-1] "Discord/$argv[1]"
2024-08-21 20:42:30 +00:00
log-t "Done! Emoji added to the" "Discord" "directory!"
2024-08-21 20:07:01 +00:00
end
end