Skip to content

DreadHeadHippy/Auto-Buddy

Repository files navigation

Auto Buddy Plugin for Nicotine+

Version License Nicotine+

Automatically adds users as buddies when they send you a private message or when you download from them. Pair it with "Buddies Only" file sharing so access is granted the moment someone reaches out.

How It Works

  1. Set your file sharing to "Buddies Only"
  2. Put "Message me for access" in your user bio
  3. When someone messages you, they're automatically added as a buddy
  4. They now have access to your files!

A user asks for access and instantly receives the auto-reply A user sends a short message and is added as a buddy

Features

  • Auto-buddy on message - Instant access via private message
  • Auto-buddy on download - Adds users you download from as buddies automatically
  • Welcome messages - Customizable auto-reply to new buddies
  • Activity logging - Track all buddy additions
  • Blacklist support - Block specific users from triggering the plugin

Installation

See INSTALL.md for full installation instructions, including one-click install scripts.

Configuration

The plugin includes the following configurable options:

  • Buddy on download — toggle whether completing a download adds that user as a buddy (on by default)
  • Welcome message — text sent when a user is added via private message (leave empty to disable)
  • Blacklist — comma-separated usernames that will never trigger auto-buddy

Setup Instructions

1. Share Settings

Nicotine+ → Settings → Shares → Downloads
Set "Who can download from me" to "Buddies"

2. User Bio

Nicotine+ → Settings → User Info → User Info
Add: "Message me for access to my files"

3. Plugin Settings

  • Enable "Auto Buddy" plugin
  • Set welcome message (optional)

Requirements

  • Nicotine+ 3.0 or higher
  • Python 3.6+

Usage

Once installed, the plugin will automatically:

  1. Monitor incoming private messages
  2. Monitor completed downloads
  3. Skip users already on your buddy list
  4. Skip users on your blacklist
  5. Add qualifying users as buddies
  6. Send a welcome message to message-triggered buddies (if configured)
  7. Log all buddy additions

Example Log Output

[Auto Buddy] Added buddy 'MusicLover42' - Reason: Received private message
[Auto Buddy] Added buddy 'VinylCollector' - Reason: Downloaded file: /Music/Pink Floyd/Wish You Were Here.flac

License

MIT License

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

About

Nicotine+ plugin - Automatically adds users as buddies when they send you a private message or when you download from them. Pair it with "Buddies Only" file sharing so access is granted the moment someone reaches out.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Contributors