Commit graph

11 commits

Author SHA1 Message Date
vylion
0974ec52e7 Moved constructor args from Archivist to Speaker when it made sense
Added a periodic save time for chats in memory
Added flags for mute time, save time, chats folder
2020-10-27 17:10:41 +01:00
vylion
895e1cd843 Reverted back to non-clean startup
Added a memory of last C updated chats (default: 20)
2020-10-27 14:42:58 +01:00
vylion
bb00efe1d1 Forgot some pytho-telegram-bot v12 callback changes 2020-10-26 23:48:55 +01:00
vylion
06c9412b4a Avoid rewriting every file at startup 2020-10-26 23:19:37 +01:00
vylion
64c117258d Changed file encoding (part 2) 2020-10-26 22:59:24 +01:00
vylion
11058f47a3 Changed file encoding (part 1) 2020-10-26 19:54:08 +01:00
vylion
ca0dc26ef4 Fixed archivist.readers_pass(...) 2020-10-26 09:32:09 +01:00
vylion
724a49f8be Overhaul 2 Finished
Markov -> Generator ✔️
Chatlog -> Metadata ✔️
Scribe -> Reader ✔️
Speaker updated ✔️

Also:
- Updated to python-telegram-bot v. 12 callbacks
- Renamed a lot of variables and rewritten a lot of code to follow Python conventions
- Added a new argument for filter chat IDs
- Changed obtention of username from hardcoded to a library-provided function
- Added a new argument for bot nicknames that it can respond to
2020-10-25 22:56:02 +01:00
vylion
328bd6adbf Overhaul 2 WIP
- Generator (Markov) ✔️
- ChatCard (Chatlog) ✔️
- ChatReader (Scribe) 🚧
- Speaker 🚧
- - Speaker->get_reader()... 🚧
2020-10-07 23:32:10 +02:00
vylion
f015e4bc60 🪲 Fixed again the folder creation for new chats.
🪲 Fixed /period giving an error message despite successfully
saving the new period.
🪲 Fixed /answer not updating.
2019-03-31 14:55:51 +02:00
vylion
d075624263 Velasco Big Overhaul Update
📝 Changed the whole script files hierarchy:
- velasco.py starts up the telegram bot
- speaker.py has all the bot behavior methods
- A Parrot is what stores a Markov object
- An Scribe stores a single chat's data
- A Speaker has an Scriptorium, with all active Scribes
- A Speaker has a single Parrot, the one associated with the last
Scribe that had to send a message
- An Archivist is in charge of loading the Scriptorium at startup, as
well as storing Scribes and Parrots in files

🐞 Fixed a bug that stopped new Parrots from being saved, prevented
because their non-existing file could not be loaded into the Speaker's
Parrot
2019-03-27 13:34:22 +01:00