Skip to content
/ Cadmus Public

Making CUPS networked (receipt and other) printers accessable through discord.

License

Notifications You must be signed in to change notification settings

WesR/Cadmus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Making CUPS networked (receipt and other) printers accessable through discord.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages