Cara API
Python Package developed by Red_wolf2467
This package is designed to make it easier for you to work with the Cara API (developed by CatC_guy). The package is based on the data found on the API doc page of the BOT / API.
Now follow sample codes that you can simply copy / paste and use.
Chatfilter
from cara_api import CaraAPI
caraAPI = CaraAPI("YOUR API-KEY")
bad_word_list = ["word1", "word2"]
request = caraAPI.chatfilter(message=message.content, levenshtein=2 ,FilteredWords=bad_word_list, GuildID=message.guild.id,
ChannelID=message.channel.id, AuthorID=message.author.id, MessageID=message.id,
GuildName=message.guild.name, ChannelName=message.channel.name, AuthorName=message.author.name, log=True)
print(request.result)
print(request.reason)
Uer
from cara_api import CaraAPI
caraAPI = CaraAPI("YOUR API-KEY")
request = caraAPI.get_user(user_id=message.author.id)
print(request.user_name)
print(request.isSpammer)
print(request.reason)