This is a bot colletion for mastodon. It will be extended as needed. Now there are 2 kinds of bot:
- intelbot
- firebot
Intelbot is a bot which collects and analyzes the toots. It will show the following items daily and weekly
- keywords of top five
- total count of toots in local timeline
- total count of users who tooted in local timeline
- the top 3 users who like toot most in local timeline
- the top 1 user who like toot most in home
Firebot is a bot for reblogging the toot with review in local timeline. Reply the toot with review and @firebot.
- install golang
- clone the project
git clone [email protected]:BreakDimbo/cmx_bot.git
- change to working directory
cd cmx_bot
- install dependency
make get
make deps
- build the binary file
make bot
make fbot
- install elastic search 6.3.0 (maybe you need install java runtime env)
- create the log file
sudo touch /var/log/mastodon_bot
sudo chown ${your_current_user} /var/log/mastodon_bot
- set the config file in config/development.toml according to config/development.demo.toml
- run elasticsearch
- run intelbot
#{working_directory}/bin/bot
- run firebot
#{working_directory}/bin/fbot
- there are xxx.service files for systemd usage in dir config
- set config.yml
- follow & unfflow automatically
- post weekly and daily
- collect local toots of followers
- refactor the structure
- log
- remove config.toml file
- readme
- show the favourited plus reblogged most toot daily
- generate graph about toots count everyday
- cache info in nsq when es connect down
- fix the way of reading dict file