|
1 | | ---- |
2 | | -title: Interactive with Mastodon |
3 | | ---- |
4 | | - |
5 | | -## How to build a Mastodon Bot |
6 | | - |
7 | | -You can choose any Mastodon instance. Here, we will be using Mastodon.social as an example. |
8 | | - |
9 | | -To create a Mastodon application, you can follow these steps: |
10 | | - |
11 | | -1. Log in to your Mastodon account. |
12 | | -2. Go to "Settings" > "[Development](https://mastodon.social/settings/applications)" > "[New Application](https://mastodon.social/settings/applications/new)". |
13 | | -3. Enter the following information: |
14 | | - - **Application name**: The name of your application. |
15 | | - - **Application website**: The website associated with your application. |
16 | | - - **Redirect URI**: The URI where users will be redirected after authentication. This can be any valid URI, but it must match the redirect URI specified in your code. |
17 | | - - Scopes: The scopes your application requires. These determine the actions your application can perform on behalf of the user. The required minimum scopes are: `read:statuses`, `read:notifications`, `write:statuses`, `write:notifications` and `write:conversations`. |
18 | | -4. Click "Submit". |
19 | | -5. On the next page, you will see your application's client ID and client secret. These will be needed to authenticate your application. |
20 | | - |
21 | | -You can find more information about creating Mastodon applications in the Mastodon documentation: https://docs.joinmastodon.org/client/token/ |
22 | | - |
23 | | -## Configuration |
24 | | - |
25 | | -After creating a Mastodon application, you can find the `Client key`, `Client secret`, and `Your access token` on the application details page. |
26 | | - |
27 | | -Next, place these keys in the environment or configuration file: |
28 | | - |
29 | | -The next step, place them below key on env or config file: |
30 | | - |
31 | | -- `WAYBACK_MASTODON_KEY`: Client key |
32 | | -- `WAYBACK_MASTODON_SECRET`: Client secret |
33 | | -- `WAYBACK_MASTODON_TOKEN`: Your access token |
34 | | - |
35 | | -Additionally, you must specify the Mastodon server by setting the `WAYBACK_MASTODON_SERVER` variable. |
36 | | - |
37 | | -## Further reading |
38 | | - |
39 | | -- [Fediverse Observer](https://mastodon.fediverse.observer/list) |
40 | | -- [fediverse.space](https://fediverse.space/) |
| 1 | +--- |
| 2 | +title: Interactive with Mastodon |
| 3 | +--- |
| 4 | + |
| 5 | +## How to build a Mastodon Bot |
| 6 | + |
| 7 | +You can choose any Mastodon instance. Here, we will be using Mastodon.social as an example. |
| 8 | + |
| 9 | +To create a Mastodon application, you can follow these steps: |
| 10 | + |
| 11 | +1. Log in to your Mastodon account. |
| 12 | +2. Go to "Settings" > "[Development](https://mastodon.social/settings/applications)" > "[New Application](https://mastodon.social/settings/applications/new)". |
| 13 | +3. Enter the following information: |
| 14 | + - **Application name**: The name of your application. |
| 15 | + - **Application website**: The website associated with your application. |
| 16 | + - **Redirect URI**: The URI where users will be redirected after authentication. This can be any valid URI, but it must match the redirect URI specified in your code. |
| 17 | + - Scopes: The scopes your application requires. These determine the actions your application can perform on behalf of the user. The required minimum scopes are: `read:statuses`, `read:notifications`, `write:statuses`, `write:notifications` and `write:conversations`. |
| 18 | +4. Click "Submit". |
| 19 | +5. On the next page, you will see your application's client ID and client secret. These will be needed to authenticate your application. |
| 20 | + |
| 21 | +You can find more information about creating Mastodon applications in the Mastodon documentation: https://docs.joinmastodon.org/client/token/ |
| 22 | + |
| 23 | +## Configuration |
| 24 | + |
| 25 | +After creating a Mastodon application, you can find the `Client key`, `Client secret`, and `Your access token` on the application details page. |
| 26 | + |
| 27 | +Next, place these keys in the environment or configuration file: |
| 28 | + |
| 29 | +The next step, place them below key on env or config file: |
| 30 | + |
| 31 | +- `WAYBACK_MASTODON_KEY`: Client key |
| 32 | +- `WAYBACK_MASTODON_SECRET`: Client secret |
| 33 | +- `WAYBACK_MASTODON_TOKEN`: Your access token |
| 34 | + |
| 35 | +Additionally, you must specify the Mastodon server by setting the `WAYBACK_MASTODON_SERVER` variable. |
| 36 | + |
| 37 | +## Further reading |
| 38 | + |
| 39 | +- [Fediverse Observer](https://mastodon.fediverse.observer/list) |
| 40 | +- [fediverse.space](https://fediverse.space/) |
0 commit comments