Commit Graph

185 Commits

Author SHA1 Message Date
6204868a18 separate game logic from bot interface,
introduce exceptions instead of boolean returns,
remove repetitive code,
begin unit tests,
improve docstrings,
update to python-telegram-bot==4.1.1,
add ponyorm settings classes (unused)
2016-05-19 20:56:52 +02:00
a6f2c07403 increase workers to 32 2016-05-08 19:40:58 +02:00
132cf9d993 udpate readme 2016-05-08 18:57:40 +02:00
f82b9ce6c0 hint on close command on game start 2016-05-08 18:52:10 +02:00
9b62f9b116 limit timer resetting even further 2016-05-08 18:38:31 +02:00
ae311ea0cf next.user 2016-05-08 17:52:06 +02:00
b75667bb86 reset at correct position and display right name 2016-05-08 17:46:41 +02:00
512d752997 make game endings more smooth 2016-05-08 17:46:14 +02:00
d85934b789 actually check for waiting time, not always 90sex 2016-05-08 17:17:51 +02:00
4c1a5537eb fix waiting time display and reset 2016-05-08 17:13:01 +02:00
1d10388d8e reduce waiting time for repeated skipping and remove after four successive skips 2016-05-08 17:03:29 +02:00
2b8c01002f some code optimization 2016-05-08 15:50:33 +02:00
842fca0021 add license information (#4) 2016-05-08 14:39:13 +02:00
880d43f471 add license information (#4) 2016-05-08 14:38:38 +02:00
686cf3facb move to AGPL (#4) 2016-05-08 14:37:25 +02:00
9b4f4a43ea on skip, add card to players hand 2016-05-02 12:10:35 +02:00
9dc387dadd on leave, return cards to deck 2016-05-02 12:10:16 +02:00
1b1edf508d change time limit to 90 seconds 2016-05-01 18:41:40 +02:00
0cf7b70454 use actual game creator, make skip available to every player 2016-05-01 18:23:59 +02:00
76b869fce7 timelimit on skip command 2016-04-30 13:27:41 +02:00
27fff4b2e1 game endings cleaner, time limit on skip command 2016-04-30 13:26:50 +02:00
c57b278c1e remove black from colors 2016-04-30 12:20:44 +02:00
dde30a14d7 answer async with timeout 2016-04-30 12:20:36 +02:00
281511e0fd display next player on leave 2016-04-30 11:43:26 +02:00
1844d1d40a move result builders and utility functions to seperate files 2016-04-29 17:03:02 +02:00
ab615f354c special card representation improved 2016-04-29 16:21:03 +02:00
3b590d9fca adjust for python-telegram-bot 4.0.1 2016-04-29 11:13:03 +02:00
6a0f3cd8c5 Merge pull request #3 from imlonghao/patch
Kicked out of games once he win
2016-04-29 08:05:01 +02:00
971fe8ef88 Kicked out of games once he win 2016-04-29 00:17:14 +08:00
9487fdf7f6 Merge pull request #2 from imlonghao/patch
Fix issue when joining a closed game, send message via send_async, se…
2016-04-27 16:12:50 +02:00
0ecf3370e3 Fix issue when joining a closed game, send message via send_async, send message to the sender in same case. 2016-04-27 21:47:11 +08:00
cb6c2f2557 Merge pull request #1 from imlonghao/startnum
Change to start number of cards from 2 to 7
2016-04-26 20:39:14 +02:00
6777e0f40c Change to start number of cards from 2 to 7 2016-04-27 00:20:15 +08:00
67daa82ece moar commands, leave always, asynchronous sending, game switching [untested] 2016-04-26 17:53:29 +02:00
c1ef321cc3 experimental: multiple games 2016-04-24 02:11:37 +02:00
c22e91eafa allow leaving game if two or less players are in game 2016-04-23 22:31:07 +02:00
ded3c7684b make sendmessage and answerinlinequery asynchronous 2016-04-23 22:13:15 +02:00
317b4662d1 add newline in help text 2016-04-20 01:32:02 +02:00
f79ce4e0fa update draw and pass sticker 2016-04-20 00:58:12 +02:00
9a763936cd use stickers instead of text/link results 2016-04-20 00:55:56 +02:00
f04d8d32e5 add new images 2016-04-20 00:55:31 +02:00
a118704e48 update ptb version 2016-04-19 02:40:27 +02:00
2a637da75f forcefully remove player if he leaves the group 2016-04-19 02:22:42 +02:00
746a9ff745 implement simple anti-cheat system 2016-04-19 01:26:38 +02:00
28863876da switch codebase to bot-api-2.0 and minor improvements 2016-04-19 00:45:27 +02:00
b17dcf5cdc catch error when trying to join ended game 2016-04-19 00:42:23 +02:00
daa211b692 do not begin with special card 2016-04-19 00:41:48 +02:00
c5c314a9b1 use color emoji 2016-04-19 00:41:23 +02:00
bc9c057d57 fix bluffing again 2016-04-19 00:40:57 +02:00
95fe601f6d scale thumbs to 80px height 2016-04-19 00:39:54 +02:00