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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file sopel-mastodon-1.0.0.tar.gz.

File metadata

  • Download URL: sopel-mastodon-1.0.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for sopel-mastodon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 37d91b8c86525368bdeb4f17175e00ebef65c2d1772f5d6195c4e90869ab1fda
MD5 78156f1b08649104f5933bdddf343216
BLAKE2b-256 6e1c966cd50394d598ad7dfd3056dd7b90baa1cd9c7f07e4e7542830c1f77f2e

See more details on using hashes here.

File details

Details for the file sopel_mastodon-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sopel_mastodon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8cb54c31c69c33f0d2a4f1d5537bfee00c8b43b270175c99736c5a49b2a675d9
MD5 29d41ced45252e1a269bea57ca997ca5
BLAKE2b-256 f7fb4e30e5cb24bb2b7637e5e69c7deecc62f66c16c84998cd30d49448fe3166

See more details on using hashes here.

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