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

12 lines
289 B
Fish
Raw Normal View History

2021-10-03 15:58:19 +00:00
function discord_export
2023-11-13 03:44:50 +00:00
if test -z "$DISCORD_TOKEN"
echo_error "\$DISCORD_TOKEN is not set."
2022-04-27 01:06:31 +00:00
return
2021-10-03 15:58:19 +00:00
end
2021-10-03 22:13:24 +00:00
set channels "--channel "$argv
set channels (string split -- " " "$channels")
2023-11-13 03:44:50 +00:00
discord-chat-exporter-cli export --bot --token $DISCORD_TOKEN $channels
2022-04-27 01:06:31 +00:00
end