ready for github
This commit is contained in:
parent
d5e0cec239
commit
103ee709b8
2 changed files with 3 additions and 4 deletions
4
bot.php
4
bot.php
|
@ -3,8 +3,8 @@ include_once 'MastodonBotPHP/Mastodon.php';
|
|||
|
||||
/* The setup */
|
||||
|
||||
$token = 'NeA2lgL7EeKQHoYcYAhOdBKtI4e9kDlrqB5f-V4kEUI'; // Token of your Mastodon welcome bot account
|
||||
$base_url = 'https://bluenoser.me'; // URL of your instance (Do not include '/' at the end.)
|
||||
$token = 'addtokenhere'; // Token of your Mastodon welcome bot account
|
||||
$base_url = 'instanceURL'; // URL of your instance (Do not include '/' at the end.)
|
||||
$visibility = 'public'; // "Direct" means sending welcome message as a private message. The four tiers of visibility for toots are Public , Unlisted, Private, and Direct (default)
|
||||
$language = 'en'; // en for English, zh for Chinese, etc.
|
||||
|
||||
|
|
|
@ -13,7 +13,6 @@ Then you just need to add this to your theme:
|
|||
```
|
||||
{% if MASTODON_COMMENTS is sameas True %}
|
||||
<p><a href="{{ SITEURL }}/mastodon-comments/bot.php?title={{ article.title|striptags }}&url={{ SITEURL }}/{{ article.url }}{% if article.photo_image %}&image=../{{ article.photo_image[1] }}{% endif %}">Click Here to Comment on Mastodon.</a></p>
|
||||
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue