mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +00:00
11 lines
289 B
Fish
11 lines
289 B
Fish
function discord_export
|
|
if test -z "$DISCORD_TOKEN"
|
|
echo_error "\$DISCORD_TOKEN is not set."
|
|
return
|
|
end
|
|
|
|
set channels "--channel "$argv
|
|
set channels (string split -- " " "$channels")
|
|
|
|
discord-chat-exporter-cli export --bot --token $DISCORD_TOKEN $channels
|
|
end
|