Coder Social home page Coder Social logo

th3raid0r / lemmy-mega-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from programming-dot-dev/rss-bot

0.0 0.0 0.0 135 KB

A lemmy bot that watches rss feeds and posts new posts from them in communities

License: GNU Affero General Public License v3.0

JavaScript 99.32% Dockerfile 0.68%

lemmy-mega-bot's Introduction

Mega Bot (Aka the megaphone bot)

A lemmy bot that watches rss feeds and posts new posts from them in communities

This bot is made for the https://programming.dev/ communities but the source code can be modified to accomodate any community

Prerequisites

  • You need to have installed node.js or Docker in order to run the bot

Setup with Node.js (Option 1)

  1. Clone the repository
  2. Create an account in the instance you want the bot to have as its home (just make a regular user)
  3. Create a file called .env in the bot folder and give it values in this format with the data in the quotes (dont add the slashes or the part after the slashes)
LEMMY_INSTANCE="" // The instance the bot account is in
LEMMY_USERNAME="" // The bot username
LEMMY_PASSWORD="" // The bot password
  1. Change the data in config.yaml based on what you want set. Set the communities and feeds you want here
  2. Open a terminal in the bot folder and run npm install to install dependendies and then node main.js to run the bot (whenever you want to start the bot again you can just do ctrl+c to interrupt the process and node main.js to start the bot)

I recommend installing something like forever.js which will make it start back up again if it errors at some point

If you run into issues feel free to dm me on Matrix here

Setup with Docker (Option 2)

  1. Clone the repository
  2. Create an account in the instance you want the bot to have as its home (just make a regular user)
  3. Create a file called .env in the bot folder and give it values in this format with the data in the quotes (dont add the slashes or the part after the slashes)
LEMMY_INSTANCE="" // The instance the bot account is in
LEMMY_USERNAME="" // The bot username
LEMMY_PASSWORD="" // The bot password
  1. Change the data in config.yaml based on what you want set. Set the communities and feeds you want here
  2. In the project directory build the docker image by running docker build -t <your name>/<desired_image_name> and then launch a new container with docker run <your name>/<desired_image_name>

lemmy-mega-bot's People

Contributors

ategon avatar mjpc13 avatar th3raid0r 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.