|
|
|
@ -18,7 +18,7 @@ function formatResponse(text) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Hooks.on("createChatMessage", async (chatData, options, userId) => {
|
|
|
|
Hooks.on("createChatMessage", async (chatData, options, userId) => {
|
|
|
|
if (chatData.speaker?.alias === 'AI DM') return
|
|
|
|
if (!game.user.isGM) return;
|
|
|
|
if(chatData.isRoll){
|
|
|
|
if(chatData.isRoll){
|
|
|
|
const parts = [];
|
|
|
|
const parts = [];
|
|
|
|
const speaker = chatData.speaker?.alias || "Someone";
|
|
|
|
const speaker = chatData.speaker?.alias || "Someone";
|
|
|
|
|