Skip to content

Commit

Permalink
Mastodon plugin docs
Browse files Browse the repository at this point in the history
  • Loading branch information
miamibc committed Dec 12, 2022
1 parent 1601db5 commit 491ca81
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions joker.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
new Joker\Plugin\QuoteInline( ['trigger'=> 'tg', 'limit' => 10] ),
new Joker\Plugin\QuoteAdmin(),
new Joker\Plugin\Stats( ['file' =>'data/log/log.json'] ),
new Joker\Plugin\Mastodon(),

// *** somethingg wide, without triggers, must stay in the end ***

Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Mastodon.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public function onPublicText( Update $update )
}
else
{

$this->subscribers[ $update->message()->chat()->id()] = $status;
$update->replyMessage("Mastodon translation started, word to search: *$status*");
}
return false;
}

public function onTimer( Update $update )
Expand Down
13 changes: 13 additions & 0 deletions src/Plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Plugins are well documented in inline comments, some interesting details will be
* [Kicker Plugin](#kicker-plugin)
* [Log Plugin](#log-plugin)
* [Lurk Plugin](#lurk-plugin)
* [Mastodon Plugin](#mastodon-plugin)
* [Meme Plugin](#meme-plugin)
* [Moderate Plugin](#moderate-plugin)
* [Pasta Plugin](#pasta-plugin)
Expand Down Expand Up @@ -417,6 +418,18 @@ Answer will be parsed from Wikimedia article (suddenly not the best quality)

Как это обычно бывает у нас…

## Mastodon Plugin

Mastodon plugin for Joker

Enable live translation of updates from Mastodon on your Telegram channel by typing:

!mastodon abcd (abcd is a message you want to search in the updates)

To disable translation, type:

!mastodon off

## Meme Plugin

Create meme with [Memegen.link](https://memegen.link/) project.
Expand Down

0 comments on commit 491ca81

Please sign in to comment.