Skip to content

crypto + bing don't work #277

@felon-efnet

Description

@felon-efnet

[12:20:14] [INFO] [efnet:#dewtz] .bing green kings 1g catridge
[12:20:14] [ERROR] Error in hook bing:bing
Traceback (most recent call last):
File "/home/dank/CloudBot-master/cloudbot/plugin.py", line 376, in _execute_hook
out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
File "/usr/lib/python3.4/asyncio/futures.py", line 386, in iter
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 287, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/dank/CloudBot-master/cloudbot/plugin.py", line 340, in _execute_hook_threaded
return hook.function(*parameters)
File "/home/dank/CloudBot-master/plugins/bing.py", line 59, in bing
j = request.json()['d']['results'][0]
File "/usr/lib/python3/dist-packages/requests/models.py", line 740, in json
return json.loads(self.content.decode(encoding), **kwargs)
File "/usr/lib/python3.4/json/init.py", line 318, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.4/json/decoder.py", line 343, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.4/json/decoder.py", line 361, in raw_decode
raise ValueError(errmsg("Expecting value", s, err.value)) from None
ValueError: Expecting value: line 1 column 1 (char 0)


crypto error on .crypto

[12:27:19] [INFO] [efnet:#i_take_irc_seriously] .crypto btc
[12:27:19] [ERROR] Error in hook cryptocurrency:crypto_command
Traceback (most recent call last):
File "/home/dank/CloudBot-master/cloudbot/plugin.py", line 376, in _execute_hook
out = yield from self.bot.loop.run_in_executor(None, self._execute_hook_threaded, hook, event)
File "/usr/lib/python3.4/asyncio/futures.py", line 386, in iter
yield self # This tells Task to wait for completion.
File "/usr/lib/python3.4/asyncio/tasks.py", line 287, in _wakeup
value = future.result()
File "/usr/lib/python3.4/asyncio/futures.py", line 275, in result
raise self._exception
File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/dank/CloudBot-master/cloudbot/plugin.py", line 340, in _execute_hook_threaded
return hook.function(*parameters)
File "/home/dank/CloudBot-master/plugins/cryptocurrency.py", line 77, in crypto_command
updated_time = datetime.fromtimestamp(data['timestamp'])
TypeError: an integer is required (got type str)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions