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

changed texy to tex and other things

parent 894a3169
user829385
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 !tgm !tap !tgm3 and !texy !shiro !camb !nullpo
FIRST; find a game to play. Games are !tgm !tap !tgm3 and !tex !shiro !camb !nullpo
SECOND; offer a race. if you want to play tgm with alice, then type '!tgm alice'
and that's it!
......
......@@ -221,7 +221,7 @@ which_game () {
modes=([0]=pentomino_c [1]=g1_master [2]=g1_20g \
[3]=g2_master [4]=g2_death [5]=g3_terror [6]=big_master)
;;
texy|texmaster)
tex|texmaster)
modes=([0]=novice [1]=normal [2]=advance [3]=special \
[4]=sudden [5]=special_ti [6]=sudden_ti)
;;
......@@ -246,7 +246,7 @@ which_game () {
camb)
ask=cambridge
;;
texy)
tex)
ask=texmaster
;;
shiro)
......@@ -692,7 +692,7 @@ Options:
-a, --abort Abort an ongoing match.
-b, --buffer BUFFER Weechat buffer for program control.
-c, --code Print hidden mode game codes.
-g, --game GAME Game played (currently supported: cam|tgm|tap|tgm3|shiro|texy)
-g, --game GAME Game played (currently supported: cam|tgm|tap|tgm3|shiro|tex)
-h, --help Show this help and exit.
-i, --info NICK Link to a player's match history.
-m, --modes List game modes.
......
......@@ -16,7 +16,7 @@ instances=$(pgrep weechat_shim | wc -l)
if ((instances<7)); then
info "instances: $(printf '%s\n' "$((instances-1))/7" )"
cd "$dir" || quit "failed to cd $dir"
timeout 30m "$dir/matcher" "$@"
timeout 35m "$dir/matcher" "$@"
else
quit "too many instances"
fi
# TODO
# is there some less fragile way to have the bot ignore itself?
/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.#the_stream && ${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|!tex && ${tg_tag_nick} != tetrisconcept_tv && ${buffer_name} != irc.local.#the_stream && ${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} =~ !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}"
/trigger addreplace matcher_irc line "*,.irc.*" "${tg_message_nocolor} =~ !nullpo|!camb|!tgm|!tap|!tgm3|!shiro|!tex && ${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