Sign inSign up

magic848/pornserv

By magic848

•Updated 2 days ago

PornServ posts porn from Reddit (and maybe other sites one day!) to IRC.

Image
0

10K+

magic848/pornserv repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:9a6d5ce21…

Size

32.4 MB

Last updated

2 days ago

docker pull magic848/pornserv