Abhijeet Kaur
0625c26c9a
bots: Correct 'http.bot_handler' to 'http.client' in googlesearch bot.
...
There is no library as 'http.bot_handler'.
'http.client' is what the author of this bots initially wrote.
Searching through the git history shows that someone mistakenly
replaced 'client' with 'bot_handler' here.
2017-07-25 10:46:22 -07:00
neiljp (Neil Pilgrim)
3234096cea
bot tests: Add preliminary tests for tictactoe bot, including state.
2017-07-25 10:45:00 -07:00
neiljp (Neil Pilgrim)
6421a6fd49
bot tests: Support optional provided state between test calls.
2017-07-25 10:45:00 -07:00
neiljp (Neil Pilgrim)
45527c4cf4
bots: Switch TicTacToe to use state_handler.state() contextmanager.
2017-07-24 17:22:17 -07:00
neiljp (Neil Pilgrim)
5ca9ec0771
bots: Switch VirtualFS to use state_handler.state() contextmanager.
2017-07-24 17:22:17 -07:00
neiljp (Neil Pilgrim)
7a8b41b63e
bots: Switch Incrementor to use state_handler.state() contextmanager.
2017-07-24 17:22:17 -07:00
neiljp (Neil Pilgrim)
101dd60829
bot lib: Add optional StateHandler contextmanager.
...
State can still be handled with get_state/set_state, and flushed
before the end of a 'with' block using set_state.
2017-07-24 17:22:17 -07:00
Abhijeet Kaur
d9ac5ad88c
bots: Add complete tests for offline testing of weather bot.
...
Also, added new lines in between different bot fixture files in
MANIFEST.in for better readability
2017-07-24 02:35:52 +05:30
Abhijeet Kaur
e23444b757
bots: Fix errors to get info from config file to run bots.
...
get_config_info function in 'ExternalBotHandler' class was
using 2 undefined variables, which wasn't allowing bots to
access information from config file.
Fixed it, bots with api key working now.
2017-07-24 02:15:20 +05:30
Abhijeet Kaur
367d0b7986
bots: Add complete tests for offline testing of xkcd bot.
...
Add patch method to mock 'randint' method to check when
xkcd bot is called with 'random' command.
2017-07-23 07:00:00 +05:30
Abhijeet Kaur
35353f6d7f
bots: Add complete tests for offline testing of wikipedia bot.
2017-07-23 06:52:24 +05:30
Abhijeet Kaur
f955eb0c8d
bots: Add complete tests for offline testing of define bot.
2017-07-22 14:22:29 -07:00
Abhijeet Kaur
2e48392884
bots: Modify howdoi/readme.md to correctly call 'howdoi' bot.
...
Update images with new commands screenshots for better understanding.
2017-07-20 16:02:47 -07:00
Abhijeet Kaur
d9a6fec1a0
bots: Remove common send-reply function.
...
Previously, the annotation for the (now removed)send-reply
function was also wrong, as "send-message" function of
EmbeddedBotHandler class does not return any value, contrary
to "Dict[str, Any]" as specified by the funtion.
This is done as a follow up for zulip/zulip#5842 .
2017-07-20 10:25:54 -07:00
Eeshan Garg
879f44ab3a
bots: Move all bots and the bots API to separate package.
2017-07-18 02:20:27 -02:30