Cubo - the counter bot

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-Request

POST http://api.sharity.net/cubo/

Query Parameters

NameTypeDescription

text

string

This string will be checked for any bad things.

type

integer

1 = Word | 2 = Sentence

language

string

Determine the language of the string. Use the country codes: EN, DE, NL, FR ...

rating

number

Enter a rating between 1 and 10

JSON: Found a 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-Request

GET http://api.sharity.net/cubo/?text=comment&language=EN&rating=5&type=1

Call this URL for the API via a GET request

Query Parameters

NameTypeDescription

text

string

This string will be checked for any bad things.

type

integer

1 = Word | 2 = Sentence

language

string

Determine the language of the string. Use the country codes: EN, DE, NL, FR ...

rating

number

Enter a rating between 1 and 10

JSON - Found a 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"
}

Last updated