Skip to main content

A Mastodon plugin for Sopel

Project description

sopel-mastodon

A Mastodon plugin for Sopel.

This plugin looks for urls of the form https://host/@user/12345 or https://host/@user@homehost/12345 and then tries to query a Mastodon API at host for details about the toot in question.

Installation

$ pip install sopel-mastodon

Usage

Just send a link to a toot!

<SnoopJ> check out this toot: https://mastodon.social/@Gargron/1
<terribot> [mastodon] @Gargron: «Hello world»

Changes between 0.1.1 and 1.0.0

  • Convert to entry-point plugin (courtesy dgw)
  • Indicate attachments to a toot
  • Use Sopel's built-in long-message truncation features
  • Use as much of an IRC message as possible when summarizing a toot

Changes between 0.1.0 and 0.1.1

  • Relax URL regex so that a list of Mastodon instance hostnames is not required
    • Any URL of the form https://host/@user/12345 or https://host/@user@homeinstance/12345 is considered as a possible Mastodon URL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel-mastodon-1.0.0.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

sopel_mastodon-1.0.0-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page