diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2018-12-13 02:58:04 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2018-12-13 02:58:04 +0100 |
| commit | e97e42135b7520e6eaf34f46e388ac86b49a59b2 (patch) | |
| tree | a357e81cff2c6255f7c587348d5fab18e68d07bf /tanken.py | |
| parent | 247f24c3bbedc96efeb8e72ecb93cbbcf00d548c (diff) | |
| download | geldschieberbot-e97e42135b7520e6eaf34f46e388ac86b49a59b2.tar.gz geldschieberbot-e97e42135b7520e6eaf34f46e388ac86b49a59b2.zip | |
refactor and initial implementation of scheduled_cmds
* 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
Diffstat (limited to 'tanken.py')
0 files changed, 0 insertions, 0 deletions
