Cubo - the counter bot

Sh
Last updated 4 months ago

Cubo is a small Bot that reviews comments on hate, spam and curse words. If he finds something, he counters with an ironic or funny answer.

Check out the demo page of the Cubo-API.

post
POST-Request

http://api.sharity.net/cubo/
Request
Response
Query Parameters
text
required
string
This string will be checked for any bad things.
type
required
integer
1 = Word | 2 = Sentence
language
required
string
Determine the language of the string. Use the country codes: EN, DE, NL, FR ...
rating
optional
number
Enter a rating between 1 and 10
200: OK
JSON: Found a counter
JSON: Found no counter
Error {
Error occurred: false
Error code: 0
Error msg: ""
},
Status {
found: true
answer: "Underestimate me - that will be funny!"
answer_id: "150"
answer_voting: "8.4"
answer_votes: "11"
answer_match: 3
answer_count: 2
answer_lang: "DE"
}

get
GET-Request

http://api.sharity.net/cubo/
?text=comment&language=EN&rating=5&type=1
Call this URL for the API via a GET request
Request
Response
Query Parameters
text
required
string
This string will be checked for any bad things.
type
required
integer
1 = Word | 2 = Sentence
language
required
string
Determine the language of the string. Use the country codes: EN, DE, NL, FR ...
rating
optional
number
Enter a rating between 1 and 10
200: OK
If the request was successfull
JSON - Found a counter
JSON: Found no counter
Error {
Error occurred: false
Error code: 0
Error msg: ""
},
Status {
found: true
answer: "Underestimate me - that will be funny!"
answer_id: "150"
answer_voting: "8.4"
answer_votes: "11"
answer_match: 3
answer_count: 2
answer_lang: "DE"
}

‚Äč