Skip to content

Commit 583a9da

Browse files
author
Foxlet
committed
Clear up headers.
1 parent 122b13f commit 583a9da

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

plugins/chatbot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")
5555
def ask(text):

plugins/google.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
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

415
import requests
516

0 commit comments

Comments
 (0)