AddBot.js as an executable script

This commit is contained in:
Rory& 2024-07-31 21:06:35 +02:00
parent 74632c671c
commit f7a7980702
2 changed files with 1 additions and 3 deletions

1
addbot.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
#! /usr/bin/env node
// @ts-check
const config = require("./config")

View file

@ -1,3 +0,0 @@
#!/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"