1.2.0 • Published 10 months ago

@thecrazyinsanity2/clydeapi v1.2.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
10 months ago

clydeapi

A basic unofficial api to interact with discord's AI, clyde. WARNING: This requires a user account to run, this IS against discord's TOS and may lead to a ban, you have been warned!

How to use: There is one function this library gives, askClyde, it takes 3 inputs prompt: String with what to ask it, this is equivalent to sending a message to it normally. (It is not required to put @Clyde) token: The token of your discord account channelid: The channel id with which to send the messages, i reccommend this channel id be a DM with clyde because anybody else talking can break this library

It then returns a promise that resolves to a string containing clydes exact response.

Current issues: Cant have two messages pending at once in the same channel, this is solved by making many different channels then deleting them when finished, similar to chats with openai.

To install:

npm i @thecrazyinsanity2/clydeapi
  • Usage example:
const token="user token here"
const guildid="guild id here"
const catid="category id here"

const clydeapi = require("./index.js")
clydeapi.promMultiAsk(guildid, catid, "Wow! What a great example script for clydeapi!", token).then(value => {
    console.log("Clyde says: " + value)
}).catch(error => {
    console.log(error)
})
1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

11 months ago