Giter Club home page Giter Club logo

pornserv's Introduction

PornServ

PornServ posts porn from Reddit (and maybe other sites one day!) to IRC. No need to explain why this is great.

Installation

Before you can use PornServ, you must first register an application on Reddit and then you need the four pieces of information to add into your praw.ini file:

client_id: The client ID is at least a 14-character string listed just under "personal use script" for the desired developed application
client_secret: The client secret is at least a 27-character string listed adjacent to secret for the application.
password: The password for the Reddit account used to register the application.
username: The username of the Reddit account used to register the application.

Then you have to edit the config.json file to reflect the IRC options. This is pretty self-explanatory:

{
  "server": "irc.example.net",
  "port": 6697,
  "ssl": "True",
  "ssl_verify": "CERT_NONE",
  "channels": ["#channel1", "#channel2", "#channel3"],
  "nick": "mybot",
  "username": "mybot",
  "realname": "my bot",
  "sasl_username": "username",
  "sasl_password": "password",
  "subreddits": ["pics", "gifs", "nsfw"]
}

Finally start the bot - an example docker-compose.yml file below:

version: "3"

services:
  ircporn:
    image: magic848/pornserv:latest
    volumes:
      - .:/data
    working_dir: /data
    command: python ircporn.py
     --config /data/config.json
    restart: always

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.