1.5.4 • Published 2 years ago

clever-bot-api v1.5.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Basic Usage

const ai = require("clever-bot-api")

ai("Hello, there").then( res => console.log(res) )

Context

function log(a){ console.log(a) }
// You can pass a context (message history) for more meaningful results
const history = ["Hi", "Are you ok?"]
ai("Yes i'm fine", history).then(log)

//Alternatively, you can pass a channel ID to automatically manage history
const channel = "chat-1", channel2 = "chat-2";
ai("Hi", channel).then(log)
ai("Yes i'm fine", channel).then(log) //takes context from channel1 (2 messages)

ai("Hello!", channel2) //takes context from channel2 (no messages)
1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.2

2 years ago

1.2.0

3 years ago

1.2.4

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.2.2

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago