Giter Site home page Giter Site logo

cjh0613 / matrix-voyager-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from turt2live/matrix-voyager-bot

0.0 1.0 0.0 1.05 MB

A Matrix bot that attempts to travel the whole network, finding rooms along the way

License: GNU General Public License v3.0

JavaScript 88.92% HTML 3.88% CSS 1.51% Vue 0.55% TSQL 5.14%

matrix-voyager-bot's Introduction

matrix-voyager-bot

TravisCI badge Donate on Gratipay

This is a [matrix] bot that travels the federation simply based upon user input to rooms it participates in.

Whenever the bot is invited to a room, or someone leaves an alias to a room in their message, the bot will try to join that room and add it to the network graph. If the bot is then kicked or banned, it removes the node from the graph.

The bot currently goes by the name of @voyager:t2bot.io and has its network graph published here.

Questions? Ask away in #voyager-bot:matrix.org

Usage

  1. Invite @voyager:t2bot.io to a room
  2. Send a message with a room alias (eg: Hello! Please join #voyager-bot:matrix.org!)
  3. Wait a moment while the bot collects some information and joins the room

Building your own

Note: You'll need to have access to an account that the bot can use to get the access token.

  1. Clone this repository
  2. npm install
  3. Copy config/default.yaml to config/production.yaml
  4. Edit the values of config/production.yaml and config/database.json to match your needs
  5. Run the bot with NODE_ENV=production node index.js

But... why?

There's no real benefit to having this bot in the room, seeing as it just listens and joins other rooms. This is not intended to be a functional bot - just a fun project that builds a pretty graph.

How to remove the bot from a room

There are 2 options to remove the bot from the room:

  1. Kick it (someone can still invite it back or relink an alias of the room)
  2. Ban it (if you'd like it to stay gone)

The bot does record who kicked/banned it and what the reason given was. The bot will remove any applicable nodes from the graph.

matrix-voyager-bot's People

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.