Skip to content

Instantly share code, notes, and snippets.

View VioletXF's full-sized avatar

VioletXF

View GitHub Profile
importPackage(android.content);
importPackage(android.app);
importClass(android.widget.Toast);
importClass(android.graphics.drawable.Icon);
const CHANNEL_ID = "call_owner";
const ignoreActionName = "msgbot.call_owner.ignore";//그냥 시스템 전반적으로 유니크하게 하시면 됩니다.
const replyActionName="msgbot.call_owner.reply";
const replyKey="key_reply";
const bot = BotManager.getCurrentBot();
importPackage(android.content);
importPackage(android.app);
const CHANNEL_ID = "test channel";
const actionName="myawesomemsgbot.buttonClick";//그냥 시스템 전반적으로 유니크하게 하시면 됩니다.
const bot = BotManager.getCurrentBot();
let receiver = new BroadcastReceiver({
onReceive: function(ctx, intent){
let action = intent.getAction();
if(action.equals(actionName)){
Log.info("btn click");
우희희희희희희희멍서
삭방빠싸박박나타빠추
오오오오속어떠서써뻐