Commit graph

243 commits

Author SHA1 Message Date
nicobo
646847e7ac
- remove ~/.xtalk support (does not look standard)
~ options username, password, group are now backend-specific, they only 
share convenient default options
~ options names fixed for config file compatibility
2020-05-22 08:37:17 +02:00
nicobo
40419d714d
+ connect method to Chatter + jabber backend to askbot ~ fixed : config.recipient -> config.recipients 2020-05-22 07:32:03 +02:00
nicobo
ce57a9c932
+ Jabber implementation using slixmpp 2020-05-22 07:29:52 +02:00
nicobo
26aad8095a
~ minor doc update 2020-05-21 06:50:26 +02:00
nicobo
c8c4ec0c3c
Merge branch 'master' of github.com:nicolabs/nicobot 2020-05-20 22:53:16 +02:00
nicobo
e29c094a96
Full review of README 2020-05-20 22:47:55 +02:00
nicobo
a600e2a33b Doc update 2020-05-20 20:14:05 +02:00
nicobo
afd716e00d
Merge pull request #23 from nicolabs/askbot
Askbot
2020-05-20 07:37:01 +02:00
nicobo
4be7b28799
+ sample conf for askbot 2020-05-20 07:29:08 +02:00
nicobo
3ba2545bc8
~ --username short option is now -U 2020-05-20 07:16:04 +02:00
nicobo
96f554b4b0
+ askbot readme 2020-05-20 07:15:33 +02:00
nicobo
f84586703d
~ Now cleany exits (let the bot treat the last messages) 2020-05-20 07:14:14 +02:00
nicobo
fc2bbf90cb
+ logs 2020-05-20 07:13:25 +02:00
nicobo
6a7058dde7
~ now returns the full status ~ options refactored a little bit ~ a few bug fixes + takes multiple patterns as options 2020-05-20 07:12:39 +02:00
nicobo
abd80401ca
~ timeouts renamed
~ send_timeout increased to 30s
- no need to bline.decode() (and may throw an error depending on the 
encoding)
2020-05-18 23:19:19 +02:00
nicobo
3af20f9814
+ logs on exit 2020-05-18 23:15:20 +02:00
nicobo
3677fb2310
~ fixed : if keywords contained special characters they were interfering message matching (occuring false matches)
+ logs
2020-05-18 23:15:02 +02:00
nicobo
04846ca4cb
+ askbot initial code (to be continued) 2020-05-17 09:34:14 +02:00
nicobo
2fd0ca3859
Merge pull request #20 from nicolabs/prepare-multibot
Prepare multibot
2020-05-16 16:36:50 +02:00
nicobo
2deae285b5
~ Doc fixes / enhancement 2020-05-16 16:33:44 +02:00
nicobo
9eec6a5d70
~ renamed sample-conf into transbot-sample-conf 2020-05-16 16:17:18 +02:00
nicobo
624680c049
+ timestamp in logs (fixes #16)
- logger name from logs
2020-05-16 00:25:00 +02:00
nicobo
e6a1a7b729
Merge branch 'master' of github.com:nicolabs/nicobot 2020-05-16 00:13:35 +02:00
nicobo
c40967909a
+ uses unicode's likely subtags to find the best country flag matching a given language ; fixes #8
+ stripping strings in a few places to remove possible empty new lines
+ logging a few exceptions just in case
2020-05-16 00:13:19 +02:00
nicobo
f4464aa0e3
Fixed: not all messages in a batch were returned to the bot engine 2020-05-16 00:09:55 +02:00
nicobo
4da5d98877
+ allows empty hello and goodbye banners (fixes #18) 2020-05-15 22:36:01 +02:00
nicobo
cfcce9123a Minor doc fix 2020-05-15 13:58:55 +02:00
nicobo
9706304cda Doc update 2020-05-15 13:55:52 +02:00
nicobo
7eb085ba3a
+ stealth mode both generic and signal-specific (fixes #19)
+ TRACE log level
~ disabling __main__ in signal code for now (in relation with #10)
2020-05-15 08:07:29 +02:00
nicobo
b3cf12b838
Merge branch 'master' of github.com:nicolabs/nicobot 2020-05-15 00:54:22 +02:00
nicobo
d651539341
Fixed : timestamp was wrongly set at the first sent message (which revealed a bug when an initial message is not sent, being None) 2020-05-15 00:54:02 +02:00
nicobo
1ecfe58f55
+ allows disabling hello and goodbye if they're empty
~ fixed wrong log
2020-05-15 00:52:26 +02:00
nicobo
bd817f3691
~ fixed : compatibility with raspbian (older) pyyaml version
~ cleaner locale handling
~ updated installation 
+ a few more logs
2020-05-14 23:58:19 +02:00
nicobo
eba95ce20c Typo fix 2020-05-14 07:06:53 +02:00
nicobo
698335d3b9
+ helpers.py (filter_files)
- --language (only --language-file is really useful)
+ specific case to translate into a given langaue (fixes #3)
2020-05-13 23:53:12 +02:00
nicobo
d2545b2f0c
+ Adding a template for all messages : fixes #15 2020-05-13 07:33:13 +02:00
nicobo
4b57c1107d
Fixes #13 : using \b word boundaries to better isolate keywords in messages 2020-05-12 23:57:08 +02:00
nicobo
9466e8378c
+ allowed multiple times --keywords-file
~ keywords.json replaced with others *.keywords.json
2020-05-12 23:33:49 +02:00
nicobo
a68935e402
~ Fixed : loadKeywords would crash with the new return format of translate() 2020-05-12 22:33:50 +02:00
nicobo
bf6a56d5df
+ manually added "Hi" to the keywords
+ hello keywords moved to a separate file
+ goodbye keywords
2020-05-12 22:33:02 +02:00
nicobo
1133d6c213
+ increased number of attempts to 5 because it doesn't find a translation too often with only 3
+ fixes #7 : increased logs (not truncating anymore + added full 
translation response + added winner language)
~ translate now returns the full JSON answer rather than only the text
2020-05-12 22:06:20 +02:00
nicobo
bfe3cda1e0
+ working code with console and signal backend 2020-05-12 07:46:27 +02:00
nicobo
f158af1fc6
Initial commit 2020-05-05 08:05:32 +02:00