Fixed DSN rolling; removed console messages; chat message clean up

This commit is contained in:
Chris Ryan 2025-12-04 21:18:09 +10:00
parent bfc84bdb2d
commit 2e6a17d787
9 changed files with 11 additions and 21 deletions

View file

@ -249,7 +249,6 @@ Hooks.on('chatMessage', (_, message) => {
}
if (message.startsWith('/fr')) {
console.log("fr message", message);
const result =
message.trim().toLowerCase() === '/fr' ? { result: {} } : rollCommandToJSON(message.replace(/\/fr\s?/, ''));
if (!result) {
@ -259,12 +258,10 @@ Hooks.on('chatMessage', (_, message) => {
const { result: rollCommand, flavor } = result;
console.log("rollCommand", rollCommand);
const fateType = rollCommand.type ?? "Hope";
console.log("fateType", fateType);
const target = getCommandTarget({ allowNull: true });
const title = 'Fate';
const title = fateType + ' Fate Roll';
enrichedFateRoll({
target,