• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

EduFdezSoy/Random-Mastodon-Bio: Change the Mastodon description/biography progra ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

EduFdezSoy/Random-Mastodon-Bio

开源软件地址(OpenSource Url):

https://github.com/EduFdezSoy/Random-Mastodon-Bio

开源编程语言(OpenSource Language):

PHP 100.0%

开源软件介绍(OpenSource Introduction):

Random Mastodon Bio ko-fi

Change the Mastodon description/biography programatically

How to?

Just drop it in somewhere and run composer install to add the dependencies.

Open the change_bio.php and edit those const and vars with your api keys and tokens:

// mastodon auth things
const INSTANCE = 'mastodon.social';
const ACCESS_TOKEN = 'your_access_token';

Then just run php change_bio.php and it will change your header.

It will explode since there is nothing to put atm, lets see how to add some sentences:

Adding biographies

If you read the code, it says:

// where are the sentences?
$biosFile = 'bios';

so we need to add in the file bios as many lines as bios we want. One line, one bio, no exception.

Take in mind the current limit is at 500 characters.

Something more

Um, oh, do whatever you like with this, I really don't care. MIT License.

If you need some help or want to verbally abuse me just drop me a toot @EduFdezSoy@mastodon.social.

If you really liked it and feel like I deserve some money, I don't know whats happening to you, but buy me a coffee and I'll continue transforming caffeine into code.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap