jagrosh / Selfbot

A simple Discord selfbot that is fast and easy to set up and use
Apache License 2.0
99 stars 56 forks source link

Add Automator Script (.app) for macOS users to automatically open terminal and start selfbot. #3

Closed julianschiavo closed 7 years ago

julianschiavo commented 7 years ago

Title says it all: Add Automator Script (.app) for macOS users to automatically open terminal and start selfbot.

Here is the script I.... very quickly... made. Could be improved, but this is a good starting point: JSelfBot copy.app.zip

Hope this can be added officially so macOS users can also have the automated selfbot experience!

JS (JG).

jagrosh commented 7 years ago

I think this may be a bit more than is needed. Can you (or anyone else with a Mac) test to see if this would be sufficient? run.zip

max-kamps commented 7 years ago

The file you posted had the following issues:

Here's a fixed version:

#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
DIR="$( dirname "$SOURCE" )"
while [ -h "$SOURCE" ]
do
  SOURCE="$(readlink "$SOURCE")"
  [[ $SOURCE != /* ]] && SOURCE="$DIR/$SOURCE"
  DIR="$( cd -P "$( dirname "$SOURCE"  )" && pwd )"
done
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

cd "$DIR"
java -jar JSelfbot.jar
jagrosh commented 7 years ago

Thanks @Hemerythrin! If you or someone can confirm that this runs correctly (it's just your code put in a run.command file; hopefully NP++'s line endings works correctly), I'll put it in the releases run.zip

max-kamps commented 7 years ago

Yep, works! 👌

jagrosh commented 7 years ago

Wonderful! It is now on the releases page and referenced in the README. Thanks!

julianschiavo commented 7 years ago

@jagrosh Would really appreciate a lounge unban now. It's been a while and I will almost do ONLY seflbot talking if you unban.