Commit 3b0c5cbd authored by user472393's avatar user472393
Browse files

add nullpomino

parent 61714de5
sashlilac_
tetro48
20
11
.----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .-----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------. .----------------.
......
......@@ -27,7 +27,7 @@ what is a race?
two players play the same mode at the same time, and the best result wins.
how to race?
FIRST; find a game to play. Games are !camb !tgm !tap !tgm3 !texy and !shiro
FIRST; find a game to play. Games are !camb !tgm !tap !tgm3 !texy !nullpo and !shiro
SECOND; offer a race. if you want to play tgm with alice, then type '!tgm alice'
......@@ -48,7 +48,7 @@ use with twitch nicknames to stream the race @ https://tetrisconcept.tv
-a --abort cancels everything
-c --code prints hidden mode codes
-i --info NICK option links history and comments
-m --mode prints the possible modes
-m --modes prints the possible modes
-s --standings prints the complete ELO rankings
the code is @ https://gitlab.tetrisconcept.tv/user472393/tctv/
......
......@@ -172,7 +172,7 @@ parser () {
fi
;;
-m|--mode)
-m|--modes)
if test -n "$2" || test -n "$game"; then
game=$2
which_game
......@@ -202,7 +202,13 @@ parser () {
which_game () {
game=${game/!/}
case $game in
case $game in
nullpo|nullpomino)
modes=([0]=grade_mania [1]=grade_mania_2 [2]=grade_mania_3 \
[3]=score_mania [4]=speed_mania [5]=speed_mania_2 \
[6]=garbage_mania [7]=phantom_mania [8]=final \
[9]=time_attack [10]=gem_mania)
;;
camb|cambridge)
modes=([0]=marathon_2020 [1]=survival_2020 [2]=survival_ck \
[4]=phantom_mania [5]=phantom_mania_2 \
......@@ -210,7 +216,7 @@ which_game () {
[9]=marathon_a2 [10]=marathon_a3 [11]=marathon_ax4 \
[12]=marathon_c89 [13]=survival_a1 [14]=survival_a2 \
[15]=survival_a3 [16]=big_a2 [17]=all_clear_a4)
;;
;;
shiro|shiromino)
modes=([0]=pentomino_c [1]=g1_master [2]=g1_20g \
[3]=g2_master [4]=g2_death [5]=g3_terror [6]=big_master)
......@@ -234,6 +240,9 @@ which_game () {
esac
case $game in
nullpo)
ask=nullpomino
;;
camb)
ask=cambridge
;;
......@@ -686,7 +695,7 @@ Options:
-g, --game GAME Game played (currently supported: cam|tgm|tap|tgm3|shiro|texy)
-h, --help Show this help and exit.
-i, --info NICK Link to a player's match history.
-m, --mode List game modes.
-m, --modes List game modes.
-p1, --player_one NICK Nickname of first player.
-p2, --player_two NICK Nickname of second player.
-s, --standings Print the ELO standings.
......
# TODO
# is there some less fragile way to have the bot ignore itself?
/trigger addreplace matcher_discord line "*,.irc.*" "${tg_message_nocolor} =~ !camb|!tgm|!tap|!tgm3|!shiro|!texy && ${tg_tag_nick} != tetrisconcept_tv && ${buffer_name} =* irc.local.*" "" "/exec -bg /home/tctv/tctv/weechat_shim --buffer ${buffer.full_name} --player_one ${tg_message_nocolor}"
/trigger addreplace matcher_discord line "*,.irc.*" "${tg_message_nocolor} =~ !nullpo|!camb|!tgm|!tap|!tgm3|!shiro|!texy && ${tg_tag_nick} != tetrisconcept_tv && ${buffer_name} =* irc.local.*" "" "/exec -bg /home/tctv/tctv/weechat_shim --buffer ${buffer.full_name} --player_one ${tg_message_nocolor}"
/trigger addreplace matcher_irc line "*,.irc.*" "${tg_message_nocolor} =~ !camb|!tgm|!tap|!tgm3|!shiro|!texy && ${tg_tag_nick} != tetrisconceptTV && ${tg_tag_nick} != tetrisconcept_tv && ${buffer_name} !* irc.local.*" "" "/exec -bg /home/tctv/tctv/weechat_shim --buffer ${buffer.full_name} --player_one ${tg_tag_nick} --game ${tg_message_nocolor}"
/trigger addreplace matcher_irc line "*,.irc.*" "${tg_message_nocolor} =~ !nullpo|!camb|!tgm|!tap|!tgm3|!shiro|!texy && ${tg_tag_nick} != tetrisconceptTV && ${tg_tag_nick} != tetrisconcept_tv && ${buffer_name} !* irc.local.*" "" "/exec -bg /home/tctv/tctv/weechat_shim --buffer ${buffer.full_name} --player_one ${tg_tag_nick} --game ${tg_message_nocolor}"
/set logger.file.flush_delay 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment