No description
.gitignore | ||
lyrics.yml | ||
mastodon.yml | ||
README.md | ||
requirements.txt | ||
wicked.py |
Dave
A Mastodon Bot written in Python that posts random Scooter quotes every time you run it.
Big thanks to Ramses for helping me and making it even better! :3
Requirements
- Python3
- pyYAML
- Mastodon.py
Installation
-
Clone the repository:
git clone https://git.cyberwa.re/dalfuss/Dave.git
-
Navigate to the project directory:
cd Dave
-
Create Mastodon App and enter Credentials:
- Go to your Mastodon Settings -> Development
- Klick "New Application"
- Enter an Application Name
- Scroll down to "Scopes" and check "write:statuses"
- Submit
- Klick on your new Application and copy your access token
- In your Terminal enter
nano mastodon.yml
- Replace the placeholders
url: https://INSTANCE.URL # <-- Your instance URL here, e.g https://corteximplant.com token: APP_TOKEN_HERE # <-- Your application token here
-
Create .venv so you don't mess up your global Python:
sudo apt install virtualenv virtualenv .venv
-
Switch to your Virtual Env and install the requirements:
source .venv/bin/activate pip install -r requirements.txt
-
Now you can either run it manually with
python bot.py
-
Or create a cronjob to run it on a timer (use Crontab.guru if you need help :3)
contab -e # This will run the script every 3 hours 0 */3 * * * /path/to/Dave/.venv/bin/python /path/to/Dave/wicked.py
Contributing
Want to add more Scooter lines?Just send a pull request. (Or don't and add them manually to your lyrics.yml
)
Contact
Got questions? Hit me up anywhere listed on dalfuss.link :3