Skip to content

Commit

Permalink
OnNostr対応
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolat committed Jul 15, 2024
1 parent 2ca5ce3 commit 4230906
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 0 deletions.
66 changes: 66 additions & 0 deletions ghost/master/ex/Nostr/nostr.kis
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
OnNostr: $(
if $[ ${System.Request.Reference0} != "Nostr/0.4" ] $(
echo \e;
) else if $[ ${System.Request.Reference1} != 42 ] $(
echo \e;
) else $(
setstr @content ${System.Request.Reference2};
if $[ $(match ${@content} "sutehai? sutehai") >= 0 ] $(
clear @a;
split @a ${@content} " ";
setstr @c $@a[3];
clear @a2;
split @a2 ${@c} \n;
setstr @pai $@a2[0];
echo \0\_q${@pai}\e;
) else if $[ $(match ${@content} naku?) >= 0 ] $(
clear @a;
split @a ${@content} " ";
setstr @word $@a[2];
if $[ ${@word} == "chi" ] $(
setstr @say "\s[0]�`�[";
setstr @aqtk "��'�[";
) else if $[ ${@word} == "pon" ] $(
setstr @say "\s[0]�|��";
setstr @aqtk "��'��";
) else if $[ ${@word} == "kan" ] $(
setstr @say "\s[0]�J��";
setstr @aqtk "��'��";
) else if $[ ${@word} == "ron" ] $(
setstr @say "\s[5]����";
setstr @aqtk "��'��";
);
if $[ ${@say} != "" ] $(
echo \0\_q${@say}\e;
AQ.ExecAqtk ${@aqtk};
) else $(
echo \e;
);
) else if $[ $(match ${@content} "sutehai?") >= 0 ] $(
clear @a;
split @a ${@content} " ";
setstr @c $@a[2];
clear @a2;
split @a2 ${@c} \n;
setstr @word $@a2[0];
if $[ ${@word} == "tsumo" ] $(
setstr @say "\s[5]�c��";
setstr @aqtk "��'��";
) else if $[ ${@word} == "richi" ] $(
setstr @say "\s[6]���[�`";
setstr @aqtk "��'�[��";
) else if $[ ${@word} == "ankan" || ${@word} == "kakan" ] $(
setstr @say "\s[0]�J��";
setstr @aqtk "��'��";
);
if $[ ${@say} != "" ] $(
echo \0\_q${@say}\e;
AQ.ExecAqtk ${@aqtk};
) else $(
echo \e;
);
) else $(
echo \e;
);
);
)
1 change: 1 addition & 0 deletions ghost/master/kawarirc.kis
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ load OnMahjong.txt;
load MahjongAI.txt;
load ex\TexasHoldem\dic_texas_holdem.kis;
load ex\TexasHoldem\dic_texas_holdem_ai.kis;
load ex\Nostr\nostr.kis;
=end
#�Z�L�����e�B���x���w��
=kis
Expand Down

0 comments on commit 4230906

Please sign in to comment.