Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Latest commit

 

History

History

chatrecall

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Chat recall plugin

This plugin will allow the user to navigate through historical messages they've typed using the up and down keys

Usage

Include the JavaScript file:

<script type="text/javascript" src="path_to_plugins/chatrecall/candy.js"></script>

Call its init() method after Candy has been initialized:

Candy.init('/http-bind/');

CandyShop.ChatRecall.init();

Candy.Core.connect();

Configuration options

messagesToKeep - Integer - The number of messages to store in history. Defaults to 10

Example configurations

// Store 25 messages for the user to scroll through
CandyShop.ChatRecall.init({
    messagesToKeep: 25
});