Description

The Nostrichat plugin allows you to easily integrate nostri.chat into your WordPress site. With this plugin, you can add a live chat widget to your pages or posts, and allow site visitors to communicate in real time. The shortcode by default will create a chat room based on the URL where it is inserted.

Installation

  1. Download this repo or directly download the file "nostrichat-plugin.zip".
  2. Go to your wordpress > plugins and "Add new", then press "Upload plugin".
  3. Select the file "nostrichat-plugin.zip" and then "Install Now".
  4. Activate the plugin and go to the settings page of nostrichat.
  5. Fill in the required fields and enjoy :)

Basic usage

  • To use this plugin, you must first configure your public key fields and optionally the list of relays in the settings page "WordPress admin dashboard > Settings (right sidebar) > Nostrichat".
  • Once these are filled in, you can simply use the following shortcode on any wordpress page: [nostrichat].
  • You can also pass some params within the shortcode to specify some settings. See examples below.
  • 💡 If you add the shortcode without specifying this argument, the default chat type will be 'GLOBAL'.
  • Example shortcode for dm: [nostrichat chat-type="DM"].

Shortcode examples

  • Basic : [nostrichat]
  • @'chat-tags' : [nostrichat chat-tags="bitcoin"]
  • @'chat-type' : [nostrichat chat-type="GLOBAL or DM"]