out-of-your-element/addbot.sh

4 lines
266 B
Bash
Raw Permalink Normal View History

2023-10-02 08:48:06 +00:00
#!/usr/bin/env sh
echo "Open this link to add the bot to a Discord server:"
2024-09-13 11:47:11 +00:00
echo "https://discord.com/oauth2/authorize?client_id=$(grep discord_token registration.yaml | sed -E 's!.*: ["'\'']([A-Za-z0-9+=/_-]*).*!\1!g' | base64 -d)&scope=bot&permissions=1610883072"