mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 03:39:26 +00:00
Add missing init() to marketplace scripts
This commit is contained in:
@@ -131,6 +131,8 @@ function formatLines(messages, ctx, width) {
|
|||||||
return lines.slice(-MAX_LINES);
|
return lines.slice(-MAX_LINES);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function init() { }
|
||||||
|
|
||||||
function tick(context, state) {
|
function tick(context, state) {
|
||||||
const { ctx, width, height, chatMessages } = context;
|
const { ctx, width, height, chatMessages } = context;
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
|
|||||||
@@ -277,6 +277,8 @@ function drawCombo(context, state, combo, now) {
|
|||||||
ctx.fillText(`${combo.count} x Combo`, labelX, labelY);
|
ctx.fillText(`${combo.count} x Combo`, labelX, labelY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function init() { }
|
||||||
|
|
||||||
function tick(context, state) {
|
function tick(context, state) {
|
||||||
const { chatMessages, emoteCatalog } = context;
|
const { chatMessages, emoteCatalog } = context;
|
||||||
if (!context?.ctx) {
|
if (!context?.ctx) {
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ function resolveAttachmentId(assets, state) {
|
|||||||
return match.id;
|
return match.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function init() { }
|
||||||
|
|
||||||
function tick(context, state) {
|
function tick(context, state) {
|
||||||
const { chatMessages, assets, now, playAudio } = context;
|
const { chatMessages, assets, now, playAudio } = context;
|
||||||
if (!Array.isArray(chatMessages) || chatMessages.length === 0) {
|
if (!Array.isArray(chatMessages) || chatMessages.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user