Giter VIP home page Giter VIP logo

mastodon-auto-reply-bot's Introduction

mastodon-auto-reply-bot

A Mastodon Bot to automatically reply to statuses that match the given filters.

Run

Docker Compose

Use docker-compose.yml.

Local

git clone https://github.com/ouuan/mastodon-auto-reply-bot
cd mastodon-auto-reply-bot
pnpm i
pnpm build
node .

Config

See schema.ts for config schema.

See Status - Mastodon documentation and Status | masto for the Status object used in filters.

Example config.yml:

url: https://mastodon.social/
streamingApiUrl: wss://mastodon.social/
accessToken: TOKEN
rules:
  - filters:
      - path: content  # path in the Status API entity
        type: string
        match: bot
      - path: tags
        type: array
        contains:  # array contains subfilters
          - path: name
            type: string
            match: auto-reply
    reply: Hello! I'm an auto-reply bot.
    at: false  # no @username in the reply
  - filters:
      - path: content
        type: string
        match: '[Hh]ello'  # regular expression
      - path: visibility
        invert: true  # reply only when the condition is not met
        type: string
        match: private
      - path: account.followersCount
        type: number
        min: 1
        max: 5
      - path: account.bot
        type: boolean
        is: false
      - path: inReplyToId
        type: 'null'
    reply: Nice to meet you!
    visibility: direct  # the visibility of the reply

mastodon-auto-reply-bot's People

Contributors

renovate[bot] avatar ouuan avatar dependabot[bot] avatar

Stargazers

 avatar Ayu avatar

Watchers

Kostas Georgiou avatar  avatar

Forkers

imdatceleste

mastodon-auto-reply-bot's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): update dependency eslint to v9

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • node 20.14.0-slim
github-actions
.github/workflows/build.yml
  • actions/checkout v4
  • actions/setup-node v4
.github/workflows/docker.yml
  • docker/login-action v3
  • docker/build-push-action v5
.github/workflows/lint.yml
  • actions/checkout v4
  • actions/setup-node v4
npm
package.json
  • async 3.2.5
  • masto 6.8.0
  • sleep-promise 9.1.0
  • ts-exhaustive-check 1.0.0
  • yaml 2.4.5
  • zod 3.23.8
  • zod-validation-error 3.3.0
  • @ouuan/eslint-config-ts 1.3.0
  • @ouuan/tsconfig-base 1.2.0
  • @types/async 3.2.24
  • @types/node 20.14.2
  • eslint 8.57.0
  • typescript 5.4.5
  • unbuild 2.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.