1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-23 07:14:22 +00:00
config-fish/functions/discord_export.fish
2021-10-04 00:13:36 +02:00

11 lines
No EOL
280 B
Fish

function discord_export
if test -z "$DISCORD_TOKEN_BOT"
echo_error "\$DISCORD_TOKEN_BOT is not set."
exit 1
end
set channels "--channel "$argv
set channels (string split -- " " "$channels")
discord-chat-exporter-cli export --bot $channels
end