Coder Social home page Coder Social logo

mastodon-bot's Introduction

Feature

This is a bot colletion for mastodon. It will be extended as needed. Now there are 2 kinds of bot:

  • intelbot
  • firebot

intelbot

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

Firebot is a bot for reblogging the toot with review in local timeline. Reply the toot with review and @firebot.

Install

  1. install golang
  2. clone the project
git clone [email protected]:BreakDimbo/cmx_bot.git
  1. change to working directory
cd cmx_bot
  1. install dependency
make get
make deps
  1. build the binary file
make bot
make fbot
  1. install elastic search 6.3.0 (maybe you need install java runtime env)
  2. create the log file
sudo touch /var/log/mastodon_bot
sudo chown ${your_current_user} /var/log/mastodon_bot
  1. set the config file in config/development.toml according to config/development.demo.toml

Usage

  1. run elasticsearch
  2. run intelbot
#{working_directory}/bin/bot
  1. run firebot
#{working_directory}/bin/fbot
  1. there are xxx.service files for systemd usage in dir config

Preview

preview

TODO

  • 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

mastodon-bot's People

Contributors

breakdimbo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.