File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ def cb_think(text):
4949 parsed = requests .post (API_URL , data = target_url , headers = HEADERS )
5050 data = parsed .text .split ('\r ' )
5151 SESSION ['sessionid' ] = data [1 ]
52- return html .unescape (data [0 ])
52+ return html .unescape (str ( data [0 ]) )
5353
5454@hook .command ("ask" , "cleverbot" , "cb" )
5555def ask (text ):
Original file line number Diff line number Diff line change 1- # RoboCop 2's gsearch.py - A replacement for google.py after Google's deprecation of Google Web Search API
2- # Module requires a Google Custom Search API key and a Custom Search Engine ID in order to function.
1+ """
2+ RoboCop 2's google.py
3+ A replacement for google.py after Google's deprecation of Google Web Search API
4+ Module requires a Google Custom Search API key and a Custom Search Engine ID in order to function.
5+
6+ Created By:
7+ - Foxlet <http://furcode.tk/>
8+
9+ License:
10+ GNU General Public License (Version 3)
11+ """
12+
13+
314
415import requests
516
You can’t perform that action at this time.
0 commit comments