CloudBot
CloudBot copied to clipboard
The command "seen" does not work as intended.
I have already fixed the issue and will make a pull request.
The command "seen" should allow you to check when a specified user has last said something in a specified channel.
Scenario
Check when a specified user
Test step
Enter .seen
Expected result
If
Actual outcome It returns that it can't look up that name, because it's impossible to use.
It appears that the maintainers don't look after this project anymore and, as such, have stopped reviewing pull requests. If you submit this to my fork, I'll go ahead and merge it.
https://github.com/tuxxy/CloudBot
In the sake of keeping the conversation in one stream please move it to PR #212
Any updates on a fix for this?
Any updates on a fix for this?
@whispy #219 Fixed issue #218
I already fixed it. Look at my pull request.
@sindastra The plugin crashes when I try to run it with your version.
Here's the traceback:
[16:13:37] [ERROR] Error loading history.py:
Traceback (most recent call last):
File "/buttbot/plugin.py", line 147, in load_plugin
plugin_module = importlib.import_module(module_name)
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 661, in exec_module
File "<frozen importlib._bootstrap_external>", line 767, in get_code
File "<frozen importlib._bootstrap_external>", line 727, in source_to_code
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
File "/plugins/history.py", line 125
return "I've never seen {} talking in {}.".format(name, chan)
^
IndentationError: expected an indented block
EDIT: Disregard the above. My file on the server wasn't synced and was missing indentation for the line specified in the traceback.