1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-10-05 19:00:47 +00:00

3.5.398. Three updates in one, I'm bad. New dashboard stuff. AutoMod badge. API helper functions for channel metadata.

This commit is contained in:
SirStendec 2016-12-14 02:40:18 -05:00
parent 439f2c32ae
commit b253f1a4d1
15 changed files with 335 additions and 23 deletions

View file

@ -355,6 +355,25 @@ FFZ.chat_commands.fetch_link.label = '/fetch_link &lt;url&gt; <i>[template]</i>'
FFZ.chat_commands.fetch_link.info = 'Fetch URL and Display in Chat';
// --------------------------
// Message-Specific Deletion
// --------------------------
FFZ.chat_commands.timeout_message = function(room, args) {
var username = args.shift(),
target_message = args.shift(),
duration = args.shift(),
reason = args.join(' ');
if ( ! username || ! target_message )
return 'Usage: /timeout_message <username> <target-message-id> [duration=600] [reason]\nTimeout a user and provide the ID of a specific message to remove.';
room.room.sendTags('/timeout ' + username + ' ' + (duration || '600') + (reason ? ' ' + reason : ''), {
'target-message-id': target_message
});
}
// ---------------------
// Group Chat Renaming
// ---------------------