aboutsummaryrefslogtreecommitdiff
path: root/geldschieberbot.py
Commit message (Collapse)AuthorAgeFilesLines
* add thanks command eastereggFlorian Fischer2021-09-091-0/+11
|
* add seperate full-sum command and print only the senders sum per defaultFlorian Fischer2021-07-011-2/+16
|
* [cars] add remove commandFlorian Fischer2021-04-181-0/+20
|
* improve code qualityFlorian Fischer2021-03-291-60/+59
|
* run yapfFlorian Fischer2021-03-291-56/+97
|
* reactions have dataMessage bot message:nullFlorian Fischer2021-03-291-1/+1
| | | | | found in: msgs/msg2021-03-29T10:16:13,490034090+02:00.log {"envelope":{"source":"+4917631649204","sourceDevice":1,"timestamp":1617005771916,"dataMessage":{"timestamp":1617005771916,"message":null,"expiresInSeconds":0,"viewOnce":false,"reaction":{"emoji":"🙉","targetAuthor":"+491639755599","targetSentTimestamp":1617005686468,"isRemove":false},"mentions":[],"attachments":[],"groupInfo":{"groupId":"7QkOgvlLmc0hPYxfZvDd0JeB88A16kmU2s83/+1yDP0=","type":"DELIVER"}}}} # Please enter the commit message for your changes. Lines starting
* support !split person amountFlorian Fischer2021-03-251-6/+15
|
* fix change recording for transfer cmdFlorian Fischer2021-03-241-3/+6
|
* s/Transfere/TransferFlorian Fischer2021-03-241-3/+3
|
* don't fail if dataMessage field is not present in jsonFlorian Fischer2021-02-171-1/+1
|
* allow sum cmd for carsFlorian Fischer2020-10-171-1/+1
|
* support rewinding specific changesFlorian Fischer2020-09-141-3/+14
|
* indent change parts in list-changesFlorian Fischer2020-09-141-5/+5
|
* add list-changes commandFlorian Fischer2020-09-141-0/+58
|
* prohibit pure numerical namesFlorian Fischer2020-08-251-1/+7
|
* prevent crashes when money should be transfered to the issuerFlorian Fischer2020-04-281-7/+15
|
* fix recording of cars pay changesFlorian Fischer2020-01-091-2/+2
|
* fix typo s/triggert/triggered/Florian Fischer2019-11-271-1/+1
|
* seperate cars from users in summariesFlorian Fischer2019-10-181-7/+26
|
* fix type (thanks lolo)Florian Fischer2019-09-081-1/+1
|
* mention proportion in cars pay outputFlorian Fischer2019-09-081-1/+2
|
* fix conversion from cent to euro for floatsFlorian Fischer2019-09-081-1/+1
|
* replace String.format with f-stringsFlorian Fischer2019-09-081-24/+22
|
* add car pay commandFlorian Fischer2019-09-081-1/+66
|
* improve transferFlorian Fischer2019-09-081-20/+18
| | | | | | | * fix old return codes * restore record_changes * call transaction not with cents because transaction will convert it to cents again
* don't append \n in one but not all summariesFlorian Fischer2019-09-081-3/+3
|
* support transactions with special users as senderFlorian Fischer2019-09-081-3/+3
| | | | A transfer including a car as source needs this
* code de-duplicationFlorian Fischer2019-09-081-14/+9
|
* move positive number check to to_centFlorian Fischer2019-09-081-16/+8
|
* don't break on empty messagesFlorian Fischer2019-06-241-0/+3
|
* implement transfer cmdFlorian Fischer2019-06-151-1/+68
| | | | | | | Alice: !transfer 5 bob charlie => alice: zieh bob 5 => alice: schieb charlie 5 => bob: zieh charlie 5 (charlie: schieb bob 5)
* improve cars error and usageFlorian Fischer2019-06-101-5/+8
|
* change sending of messagesFlorian Fischer2019-06-101-104/+83
| | | | | | each cmd now must return a message and an error message. If the error message is None the message will be send otherwise the error message
* strip whitespace from linesFlorian Fischer2019-06-101-1/+1
|
* handle cars cmd special casesFlorian Fischer2019-06-091-0/+7
| | | | | * print error if cars cmds couldn't be parsed * print message if no cars are registered
* support special users in transactionsFlorian Fischer2019-06-091-2/+2
| | | | | This change allows "schieb" and "zieh" commands to interact with balances from non human users like car balances.
* add new car commands and make tanken aware of carsFlorian Fischer2019-06-091-11/+106
| | | | | | | | | | | | | | | Cars are names associated to a service charge. They are stored in the state file in a dict called "cars". Each car has its own balance from which money can be pulled or pushed. Because of this cars and users can't share a name. Service charges are calculated per drive and split among all drivers similar to fuel cost. If a driver is not known by geldschieberbot the recipient of the "tanken" cmd is held accountable and has to collect the service charge manually just like fuel cost. NOTE: This change breaks geldschieberbot if the state file does not contain the field "cars" !!! You have to add it manually !!!
* don't fail if input is no valid jsonFlorian Fischer2019-06-091-1/+5
|
* fix loading of stateFlorian Fischer2019-06-091-3/+1
|
* rename and fix sender lookup in _tankenFlorian Fischer2019-06-091-5/+5
|
* add suppport for legacy data stores and scheduled exec refactoringFlorian Fischer2018-12-281-32/+95
| | | | | | | * monthly commands with days > 28 are executed on 28. * bug fixes in cancel * add support for python3 < 3.7 (date.fromisoformat) * add support for cmds in changes (cancel)
* implement cancel commandFlorian Fischer2018-12-131-0/+15
|
* refactor and initial implementation of scheduled_cmdsFlorian Fischer2018-12-131-242/+342
| | | | | | | | | | | * Now the state is stored in a single file at $GSB_STATE_FILE. * Fixed some typos. * Commands are now functions in a dict. The sender_number, the args, and the whole message are passed to the command functions. * for each scheduled command a name, the command args and the timestamp of the last execution are stored. * datetime.timedelta objects are used to check if a scheduled cmd should run
* also split amount on german ,Florian Fischer2018-12-061-1/+3
|
* strip lines in messageFlorian Fischer2018-11-101-1/+1
|
* fix empty message checkFlorian Fischer2018-10-091-1/+1
|
* parse groupId correctFlorian Fischer2018-10-051-1/+1
|
* fix MessageFlorian Fischer2018-10-051-1/+1
|
* fix sender var nameFlorian Fischer2018-10-051-1/+1
|
* use json output of signal-cliFlorian Fischer2018-10-051-50/+13
|