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))
- Select "References tab", then right click and "Add reference from file".
- Look for the file "System.Net.Http.dll, select it and click on "Open".
- Click on "Compile" to confirm that there are no errors in the tab "Compiling Log".
- 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.
- 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.
- Double click on "Set argument %printer% to 'Microsoft Print to PDF'" and set your printer's name as shown on window's configuration.
- Double click on "Set argument %postToDiscord% to 'False'" and set it to 'True' if you want to post the image on your Discord channel.
- 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.
Ready, now you can assign it to you sub's action in streamer.bot or add it as sub-action!