Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
Update extension.js
Browse files Browse the repository at this point in the history
updated casing
  • Loading branch information
Anonymous-cat1 authored Oct 14, 2023
1 parent 5052b8d commit 02725a2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
{
opcode: "__NOUSEOPCODE",
blockType: Scratch.BlockType.LABEL,
text: "Chatbot mangagement",
text: "chatbot mangagement",
},
{
opcode: 'createChat',
Expand All @@ -104,7 +104,7 @@
{
opcode: 'removeChat',
blockType: Scratch.BlockType.COMMAND,
text: 'Delete Chatbot [chatID]',
text: 'Delete chatbot [chatID]',
arguments: {
chatID: {
type: Scratch.ArgumentType.STRING,
Expand Down Expand Up @@ -198,7 +198,7 @@
},
merge: {
acceptReporters: true,
items: ['Merge/Update existing chats', 'Remove all Chatbots and import']
items: ['Merge/Update existing chats', 'Remove all chatbots and import']
}
}
};
Expand Down Expand Up @@ -311,7 +311,7 @@
}
}
}
return 'Error: There is no chat history availble for that Chatbot.';
return 'Error: There is no chat history availble for that chatbot.';
}

exportChat(args) {
Expand All @@ -321,7 +321,7 @@
const json = JSON.stringify(chatHistory);
return json;
} else {
return 'Error: There is no chat history availble for that Chatbot.';
return 'Error: There is no chat history availble for that chatbot.';
}
}

Expand Down Expand Up @@ -363,7 +363,7 @@
delete this.chatHistories[chatID];
}
else {
return "Error: There is no chat histroy availble for that Chatbot.";
return "Error: There is no chat histroy availble for that chatbot.";
}
}

Expand All @@ -372,7 +372,7 @@
const chatID = args.chatID;

if (!(chatID in this.chatHistories)) {
return "Error: That Chatbot does not exist.";
return "Error: That chatbot does not exist.";
}

const chatHistory = this.chatHistories[chatID] || [];
Expand Down

0 comments on commit 02725a2

Please sign in to comment.