out-of-your-element/addbot.sh

4 lines
257 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:"
echo "https://discord.com/oauth2/authorize?client_id=$(grep discordToken config.js | sed -E 's!.*: ["'\'']([A-Za-z0-9+=/_-]*).*!\1!g' | base64 -d)&scope=bot&permissions=1610883072"