Giter Club home page Giter Club logo

cadmus's Introduction

Cadmus

Making CUPS networked printers accessable through discord. The print command is made for printing to a receipt printer with a max character width of 18 characters (monospace). Because of this, any text sent through the print command will be auto formatted to break on spaces (So a word under 18 does not get broken up).

The print command allows the choice of printers. This allows remote printing of documents from anywhere.

NOTE: printed files MUST be attached to the command message

Documents Support

Anything the CUPS printer supports, so almost all images / word doc's / pdf's, etc

Commands

The trigger is @botName. Ownership is determined by the userID specified in the .json.

Open to anyone

  • print [any length text]
  • print-doc [any document/image]
  • get printers
  • get default printer
  • get job queue
  • clear job queue

Requires Owner Permission:

  • print-doc printer [printer name] [any document/image]

Admin Commands:

  • clear printer queue [printer]
  • set default printer [name]
  • yes (Must @ the bot. Allows print-doc on other printer)

defaultsAndKeys.json should look like:

{
    "discord": "yeahsomthinglong.yepp.morehashshouldbehere",
    "ownerid":  "9465198416516ish",
    "default-printer": "your-printer-name-locally"
}

Example

Example of user asking to print on another printer:

User Asking to print

pyCups Documentation

cadmus's People

Contributors

wesr avatar

Watchers

 avatar  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.