bmarwell / social-metricbot

A metric bot for twitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Social Metricbot

Maven CI License codecov.io Renovate AppServer

A metric bot for social networks like Mastodon, Bluesky (bsky), but not 𝕏 (formerly Twitter). If mentioned with 'please' on a tweet containing imperial units, will reply with converted metric units for your convenience.

Active bots

Inactive bots

How to use

If you spot a tweet with metric units in it, create a reply and mention @metricbot1 please or @metricbot1 convert please.

For Mastodon, use @metricbot@botsin.space please or @metricbot@botsin.space convert please.

Features

  • find tweets with imperial units.

  • can convert units to metrics and reply.

Currently implemented units

Table 1. Supported metric conversions in alphabetical order
Input Unit Output Unit(s) Example Input Example output

Calories (cal)

Kilojoule (kJ)

Cups (cup)

Millilitres (ml)

Fluid Ounce (fl.oz.)

Millilitres (ml)

Foots and Inches ('/"/ft)

Centimetres (cm), Metres (m), Kilometres (km)

Gallons

Litres (L), cubic metres (m²)

Horse Power (hp)

Kilowatts (kW)

Miles

Kilometres (km)

Pints (pt)

Litres (L), Millilitres (ml)

Pounds (lb)

Kilograms (kg)

Tablespoons (tbsp)

Grams (g)

Teaspoons (tsp)

Grams (g)

Temperature: Degree Fahrenheit (°F)

Temperature: Degree Celsius (°C)

Weighted Ounce (oz.)

Grams(g)

No idea what makes the Celsius temperature more metric than Fahrenheit, but Fahrenheit is a very convenient unit.

Configuration

How to start

You can start this OpenLiberty docker container like this:

docker run \
  -p 9080:9080 \
  -e IO_GITHUB_BMARWELL_SOCIAL_METRICBOT_H2_DB=jdbc:h2:file:/var/opt/metricbot.db \
  -name metricbot \
  io.github.bmarwell.social.metricbot/social-metricbot-app-ol-docker:latest

About

A metric bot for twitter

License:Apache License 2.0


Languages

Language:Java 99.9%Language:Dockerfile 0.1%