CloudBotIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
273 stars 252 forks source link

crypto + bing don't work #277

Open felon-efnet opened 6 years ago

felon-efnet commented 6 years ago

[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)