1.1.0 • Published 5 years ago
smarty-ds v1.1.0
#Exemple setup | Also check comments!
:)
Simply tag the bot on discord and ask him something and he will answear accordingly in the language he has been asked.
// You must have these modules installed "cleverbot.io" , "readline" , "discord.js"
// npm install cleverbot.io && npm install readline && npm install discord.js
// Right in the path of where you want to run the bot and where is also the smarty.js
var smarty = require('smarty-ds');
var token = "Discord Login TOKEN"; // Discord`s bot token
var ds_client_id = "Discord CLIENT_ID"; // Discord Bot`s Client ID
var clever_api_user = "Cleverbot API_USER"; // Take them both -->
var clever_api_key = "Cleverbot API_KEY"; // <-- from http://cleverbot.io/keys
smarty.set(token, ds_client_id, clever_api_user, clever_api_key); //All you need to do