Vladislav Glinsky
e840fe1fb6
Add discard/keep modifier to dice roll, improve dice roll tests
6 years ago
Vladislav Glinsky
9e7c3ae29b
Add markdown escaping to /roll
5 years ago
Vladislav Glinsky
02cafe7fe8
Update python-telegram-bot to 12.7
6 years ago
Vladislav Glinsky
91e0608bbe
Merge in daily titles feature
6 years ago
Vladislav Glinsky
dd8dbfdb37
make mention bold in /me response
6 years ago
Vladislav Glinsky
26ceb1998c
Preserve strike-through and underlined text in /roll
fixes #16
6 years ago
Vladislav Glinsky
9470030aa4
Update python-telegram-bot to 12.6.1
now preserves strike-through and underlined text in /me (for #16 )
still needs more work to be done for #20
6 years ago
Vladislav Glinsky
cea6c140ca
don't log message deletion errors anymore
their main cause is a lack of permissions for the bot in the chat
6 years ago
Vladislav Glinsky
ecc10011e6
Add get_chat_id developer command
6 years ago
Vladislav Glinsky
73149108ba
Show chat id in error reports
6 years ago
Vladislav Glinsky
7fa3631eb8
Improve logging
6 years ago
Vladislav Glinsky
fadd0f8048
Ignore .egg-info dirs
6 years ago
Vladislav Glinsky
397206c9dc
[roll] More tests for d100
6 years ago
Mykyta Solomko
033182d3c3
Added dice emoji for /roll
6 years ago
Vladislav Glinsky
714a947dfa
Fix SC2068
Shellcheck: "double quote array expansions to avoid re-splitting
elements"
6 years ago
Vladislav Glinsky
e98d61dfa3
Update dependencies, use abstract versions in setup.py
6 years ago
Vladislav Glinsky
556032a34d
Put back requirements.txt
6 years ago
Vladislav Glinsky
4c565168c5
Log message deletion errors
6 years ago
Vladislav Glinsky
86e4bfe47c
Ignore message deletion errors
6 years ago
Vladislav Glinsky
c5662ac68a
Decorator for caller's message deletion code
6 years ago
Vladislav Glinsky
8911d859fa
Cleanup, rename package `command_handlers` to `commands`
6 years ago
Vladislav Glinsky
7441d3a5a3
Improve `/fortune` command
Send 'typing' action, delete message of the user who requested a fortune
telling and add his/her name to epigram in reply
closes #8
6 years ago
Vladislav Glinsky
28466a2ae0
Improve error descriptions in error handler
6 years ago
Vladislav Glinsky
4a0bffdcd1
[roll] Add d% alias for percentile dice (d100)
6 years ago
Vladislav Glinsky
659d6897fd
Improve documentation, correct required Python version
6 years ago
Vladislav Glinsky
55ac119c6e
Refactoring
Convert whole project to runnable package
Extract command handlers into separate modules
Add setuptools build script
Replace requirements.txt use with "editable" install of project package
in Dockerfile
6 years ago
Vladislav Glinsky
8e760a06de
Use MIT license
6 years ago
Vladislav Glinsky
15adff88ef
Update python-telegram-bot to 12.3.0
6 years ago
Vladislav Glinsky
4ec3166684
Add missing exception handling in error reporting
6 years ago
Mykyta Solomko
96adfb58a1
Use build-base metapackage instead of alpine-sdk
6 years ago
Vladislav Glinsky
fab6102ec0
Improve error reporting
Handle cases when bot can’t send error reports to users who blocked the
bot or didn’t yet initiated conversation
closes #5
6 years ago
Mykyta Solomko
6f2150cdf7
Added dice_parser.py to Dockerfile
6 years ago
Vladislav Glinsky
77678008a8
Add sending error reports to DMs
6 years ago
Vladislav Glinsky
6ba0813be4
Add `/r` alias for `/roll` command
6 years ago
Vladislav Glinsky
6b69d07f93
Add modifier to dice roll
6 years ago
Vladislav Glinsky
e608202d6e
Add basic `/roll` implementation
6 years ago
Vladislav Glinsky
d3e5cc699d
`/roll`: Add limits for sides and rolls
6 years ago
Vladislav Glinsky
f1796ef2c5
Add initial `roll` implementation
6 years ago
Vladislav Glinsky
2f201acec3
Completely ignore edits in /me
6 years ago
Vladislav Glinsky
c81d2d0e29
Remove unused 'start' command, improve help message
6 years ago
Vladislav Glinsky
81261e3c07
Add 'ping' command
6 years ago
Vladislav Glinsky
943c0555ef
Add `/fortune` command
6 years ago
Mykyta Solomko
3556dc8a1e
Added fortune package
6 years ago
Vladislav Glinsky
e30c4cd6cb
Update 'me' command
Delete original message
Use mention in a
Change empty message reply
6 years ago
Vladislav Glinsky
345bf09ed3
Cleanup and update code for python-telegram-bot 12
6 years ago
Mykyta Solomko
208983854b
Changed workdir
6 years ago
Mykyta Solomko
e09747fd9d
Tabs to spaces
6 years ago
Mykyta Solomko
cdd3146c1f
Added docker-related stuff
6 years ago
Vladislav Glinsky
0a3dbe3d19
Add answer for /me command sent w/o message
7 years ago
Vladislav Glinsky
68f449936b
Initial commit
7 years ago