Skip to content

Commit

Permalink
Update message.js
Browse files Browse the repository at this point in the history
  • Loading branch information
realcoloride authored Mar 9, 2024
1 parent 56383ce commit da3909a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions message.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,13 @@ class Message {
};

class Reply {
constructor(chat, options) {
constructor(chat, options, index) {
this.chat = chat;

if (options.force_login == true) throw Error("Too many messages! (this might be because you use a guest account)");
if (options.force_login == true) throw Error("Too many messages! (this might be because you use a guest account or that characterai has restricted messages for guests.)");
if (options.abort == true) throw Error("Could not get the full reply because it was aborted. This happens often when the output was filtered for violent or explicit content.");

const replyOptions = options.replies[0];
const replyOptions = options.replies[index];
this.text = replyOptions.text
this.id = replyOptions.id
this.imageRelativePath = replyOptions.image_rel_path
Expand Down

0 comments on commit da3909a

Please sign in to comment.