Skip to content

Commit 51b6847

Browse files
committed
Mastodon plugin docs
1 parent 491ca81 commit 51b6847

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

.env.sample

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
# telegram
2-
TELEGRAM_TOKEN = ""
2+
TELEGRAM_TOKEN=""
33

44
# openweather
5-
OPENWEATHER_API_KEY = ""
5+
OPENWEATHER_API_KEY=""
66

77
# spotify
8-
SPOTIFY_CLIENT_ID = ""
9-
SPOTIFY_SECRET = ""
8+
SPOTIFY_CLIENT_ID=""
9+
SPOTIFY_SECRET=""
1010

1111
# twitch
12-
TWITCH_CLIENT_ID = ""
13-
TWITCH_SECRET = ""
12+
TWITCH_CLIENT_ID=""
13+
TWITCH_SECRET=""
1414

1515
#google
16-
GOOGLE_API_KEY = ""
16+
GOOGLE_API_KEY=""
17+
18+
# mastodon
19+
MASTODON_HOST="https://masto.ai"
20+
MASTODON_API_TOKEN=""

src/Plugin/README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -420,16 +420,18 @@ Answer will be parsed from Wikimedia article (suddenly not the best quality)
420420

421421
## Mastodon Plugin
422422

423-
Mastodon plugin for Joker
424-
425-
Enable live translation of updates from Mastodon on your Telegram channel by typing:
423+
Enable live translation of updates from Mastodon to your Telegram channel by typing:
426424

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

429427
To disable translation, type:
430428

431429
!mastodon off
432430

431+
To start plugin, you need an account in Mastodon. Add hostname and API token to the .env file:
432+
- `MASTODON_HOST` host where you registered your account, for example "https://masto.ai"
433+
- `MASTODON_API_TOKEN` your API token
434+
433435
## Meme Plugin
434436

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

0 commit comments

Comments
 (0)