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.
- Download this repo or directly download the file "nostrichat-plugin.zip".
- Go to your wordpress > plugins and "Add new", then press "Upload plugin".
- Select the file "nostrichat-plugin.zip" and then "Install Now".
- Activate the plugin and go to the settings page of nostrichat.
- Fill in the required fields and enjoy :)
- 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"].
- Basic : [nostrichat]
- @'chat-tags' : [nostrichat chat-tags="bitcoin"]
- @'chat-type' : [nostrichat chat-type="GLOBAL or DM"]