readme and bot update
This commit is contained in:
parent
f10c3726da
commit
d5e0cec239
3 changed files with 23 additions and 4 deletions
2
bot.php
2
bot.php
|
@ -8,7 +8,7 @@ $base_url = 'https://bluenoser.me'; // URL of your instance (Do not include '/'
|
||||||
$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)
|
$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.
|
$language = 'en'; // en for English, zh for Chinese, etc.
|
||||||
|
|
||||||
$instance_user = '@jeffsblogbot';
|
$instance_user = '@useryou are using'; // @user
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
// Functions
|
// Functions
|
||||||
|
|
22
readme.md
Normal file
22
readme.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Here is the Bot for your Mastodon Comments
|
||||||
|
|
||||||
|
This bot is 100% for creating a post for commenting on an article on your blog. I built this specifically for my pelican SSG based site.
|
||||||
|
|
||||||
|
To make work on your pelican site in the pelicanconf.py add
|
||||||
|
|
||||||
|
```
|
||||||
|
MASTODON_COMMENTS = True
|
||||||
|
```
|
||||||
|
|
||||||
|
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 %}
|
||||||
|
```
|
||||||
|
|
||||||
|
I need to make it prettier, but this is looking good so far.
|
||||||
|
|
||||||
|
If you use the photos plugin you can remove the image variable.
|
|
@ -1,3 +0,0 @@
|
||||||
Here is the Bot for your Mastodon Comments
|
|
||||||
==========================================
|
|
||||||
|
|
Loading…
Reference in a new issue