pastebin

Provides a pastebin api to interact with pastebin without using the pastebin shell command.

get(id)Get a string from pastebin.
put(string [, name])Put a string on pastebin.
get(id)Source

Get a string from pastebin.

Parameters

  1. id string The paste id that you want to download.

Returns

  1. string | nil The string containing the paste, or nil.
  2. nil | string The reason why it couldn't be retrieved.
put(string [, name])Source

Put a string on pastebin.

Parameters

  1. string string The string that you want to put on pastebin.
  2. name? string The name of the paste, defaults to "CC:T Paste".

Returns

  1. string | nil A string containing the id of the paste.