Refactor code

* move plugins out of botlib.pm
* use make_path instead of mkpath
* squash some bugs
* update .gitignore
* use more correct randomizer, rather than perl own rand()
* coding style fixes
This commit is contained in:
eleksir
2021-01-05 13:42:41 +03:00
parent 8a521d3f3b
commit a1d238949f
20 changed files with 582 additions and 406 deletions

View File

@@ -10,16 +10,13 @@
"srcdir" : "data/fortune_src"
},
"telegrambot" : {
"name" : "mybot",
"tname" : "@my_bot",
"csign" : "!",
"token" : "get_it_from_botfather",
"braindir": "data/telegrambot-brains"
},
"openweathermap" : {
"cachetime": "data/cache/openweathermap.Id-Timestamp.db",
"cachedata": "data/cache/openweathermap.Id-Data.db",
"appid": "get_it_on_openweathermap.org"
"appid": "get_it_on_openweathermap.org",
"cachedir" : "data/cache"
},
"lat" : {
"brain": "data/lat/lat.sqlite",