diff --git a/src/bot/commands.rs b/src/bot/commands.rs index 917761d..39dc124 100644 --- a/src/bot/commands.rs +++ b/src/bot/commands.rs @@ -77,12 +77,14 @@ impl Handler { - `reactions`: map (이모지 - 개수) - `channel`: string (채널 ID) - `category`: string (카테고리 ID, 없을 시 UNIT) +- `removed`: bool (리액션 제거 여부) `result("채널ID", 리액션 개수, "메시지에 사용될 아이콘(이모지 권장)")` 를 리턴해주세요(unit이나 다른 값 반환 시 무시됩니다) +\*리액션 제거 시 무조건 값을 리턴해줘야 컷 아래로 내려갔을때 메시지가 수정됩니다 예시 스크립트: ```rs -if reactions["⭐"] >= 3 { +if reactions["⭐"] >= 3 || removed { return result("0000000000000000000", reactions["⭐"], "⭐") } ```"#, diff --git a/src/bot/handler.rs b/src/bot/handler.rs index 522a262..622668a 100644 --- a/src/bot/handler.rs +++ b/src/bot/handler.rs @@ -11,7 +11,6 @@ use serenity::{ Reaction, StickerFormatType, StickerItem, Webhook, WebhookId, }, async_trait, - futures::lock::Mutex, small_fixed_array::{FixedArray, FixedString}, }; use sqlx::{PgExecutor, PgPool};