No description
Find a file
dalfuss 4db99512d7 revert f5add5dd1a
revert duplicates removed
2025-01-16 09:17:29 +00:00
.gitignore added .gitignore 2025-01-16 09:40:37 +01:00
lyrics.yml revert f5add5dd1a 2025-01-16 09:17:29 +00:00
mastodon.yml I am the Captain, my name is Dave! 2025-01-16 09:38:46 +01:00
README.md fixed README.md 2025-01-16 09:54:06 +01:00
requirements.txt I am the Captain, my name is Dave! 2025-01-16 09:38:46 +01:00
wicked.py I am the Captain, my name is Dave! 2025-01-16 09:38:46 +01:00

Dave

A Mastodon Bot written in Python that posts random Scooter quotes every time you run it.

@dave@cyber.ms

Big thanks to Ramses for helping me and making it even better! :3


Requirements

  • Python3
  • pyYAML
  • Mastodon.py

Installation

  1. Clone the repository:

    git clone https://git.cyberwa.re/dalfuss/Dave.git
    
  2. Navigate to the project directory:

    cd Dave
    
  3. 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
    
  4. Create .venv so you don't mess up your global Python:

    sudo apt install virtualenv
    virtualenv .venv
    
  5. Switch to your Virtual Env and install the requirements:

    source .venv/bin/activate
    
    pip install -r requirements.txt
    
  6. Now you can either run it manually with

    python wicked.py
    
  7. 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 * * * cd /path/to/Dave && /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