Skip to content

Print, create an image and post it on Discord, for streamer.bot

Notifications You must be signed in to change notification settings

ciskosv/Print-Subs-streamer.bot-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Print Subs for streamer.bot

Print, create an image and post it on Discord, for streamer.bot

It has been tested on Windows, supports thermal printers (tickets).

In case of needed, you will have to add the reference System.Net.Http:

  • Double click on Execute Code (Print(EN))

image

  • Select "References tab", then right click and "Add reference from file".

image

  • Look for the file "System.Net.Http.dll, select it and click on "Open".

image

  • Click on "Compile" to confirm that there are no errors in the tab "Compiling Log".

image

  • Double click on "Set argument %paperWidth% to '314'" sub-action and set your paper's width in hundreths of inches. i.e. 314 for 3.14 inches.

image

  • Double click on "Set argument %paperHeight% to '0'" sub-action and set your paper's width in hundreths of inches. Leave it on "0" if you have a thermal printer in order to calculate the height automatically based on content.

image

  • Double click on "Set argument %printer% to 'Microsoft Print to PDF'" and set your printer's name as shown on window's configuration.

image image

  • Double click on "Set argument %postToDiscord% to 'False'" and set it to 'True' if you want to post the image on your Discord channel.

image

  • If you set the option to post on Discord to True, then double click on "Set argument %discordWebhook% to'none' and set your Discord's channel's webhook URL.

image

Ready, now you can assign it to you sub's action in streamer.bot or add it as sub-action!

About

Print, create an image and post it on Discord, for streamer.bot

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages