Autobump backend finished. Tweaks may be made during creation of
configuration frontend, but for the most part should be set in stone.
This commit is contained in:
parent
fcb562397a
commit
cb4c99727f
10 changed files with 1010 additions and 42 deletions
|
|
@ -760,6 +760,7 @@ Callbacks = {
|
|||
},
|
||||
|
||||
queue: function(data) {
|
||||
console.log(data);
|
||||
PL_ACTION_QUEUE.queue(function (plq) {
|
||||
stopQueueSpinner(data.item.media);
|
||||
var li = makeQueueEntry(data.item, true);
|
||||
|
|
@ -1199,6 +1200,10 @@ Callbacks = {
|
|||
if (CHANNEL.opts.allow_voteskip && hasPermission("voteskip")) {
|
||||
$("#voteskip").attr("disabled", false);
|
||||
}
|
||||
},
|
||||
|
||||
sendBumplists: function (data){
|
||||
console.log(data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -607,6 +607,58 @@ fptoke.elm = [//fpmod element array
|
|||
]
|
||||
|
||||
fptoke.ocall = function(){
|
||||
$("#fpcontdiv").append(
|
||||
$("<h4>").html("Tokebot Control"),
|
||||
$("<form>").addClass("qt").append(
|
||||
$("<button/>").addClass("btn btn-primary btn-ln").attr("id","tb-resetcd").text("Reset Toke Cooldown").prop("type","button").click(function(){
|
||||
chatsmack("!resettoke");
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
if(window.CLIENT.rank <= 256){
|
||||
$("#fpcontdiv").append(
|
||||
$("<form>").addClass("qt").append(
|
||||
$("<button/>").addClass("btn btn-primary btn-ln").attr("id","tb-resetcd").text("Reload Tokes File").prop("type","button").click(function(){
|
||||
chatsmack("!reloadtokes");
|
||||
}),
|
||||
),
|
||||
$("<form>").addClass("qt").append(
|
||||
$("<button/>").addClass("btn btn-primary btn-ln").attr("id","tb-whisperbtn").text("Toke Whisper: ").prop("type","button").click(function(){
|
||||
chatsmack("!tokewhisper " + $("#tb-whisper").val());
|
||||
}),
|
||||
$("<input>").prop("id","tb-whisper").prop("type","text").addClass("qs-form").attr("placeholder","Whisper text.").keydown(function(ev){
|
||||
if(ev.keyCode==13){
|
||||
chatsmack("!tokewhisper " + $("#tb-whisper").val());
|
||||
return false;
|
||||
}
|
||||
})
|
||||
),
|
||||
$("<form>").addClass("qt").append(
|
||||
$("<button/>").addClass("btn btn-primary btn-ln").attr("id","tb-saybtn").text("Toke Say: ").prop("type","button").click(function(){
|
||||
chatsmack("!tokesay " + $("#tb-say").val());
|
||||
}),
|
||||
$("<input>").prop("id","tb-say").prop("type","text").addClass("qs-form").attr("placeholder","Chat text.").keydown(function(ev){
|
||||
if(ev.keyCode==13){
|
||||
chatsmack("!tokesay " + $("#tb-say").val());
|
||||
return false;
|
||||
}
|
||||
})
|
||||
),
|
||||
$("<form>").addClass("qt").append(
|
||||
$("<button/>").addClass("btn btn-primary btn-ln").attr("id","tb-yellbtn").text("Toke Announce: ").prop("type","button").click(function(){
|
||||
chatsmack("!tokeyell " + $("#tb-yell").val());
|
||||
}),
|
||||
$("<input>").prop("id","tb-yell").prop("type","text").addClass("qs-form").attr("placeholder","Announce text.").keydown(function(ev){
|
||||
if(ev.keyCode==13){
|
||||
chatsmack("!tokeyell " + $("#tb-yell").val());
|
||||
return false;
|
||||
}
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
modNested.popMenu();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue