Compare commits

...

2 Commits

Author SHA1 Message Date
624d894a82 [minor]: Merge pull request '[minor]: only publish publicrolls' (#4) from only-publish-publicrolls into main
All checks were successful
ci / ci (push) Successful in 34s
Reviewed-on: #4
2025-03-24 18:52:54 +01:00
Arindy
f250daae56 [minor]: only publish publicrolls
All checks were successful
ci / ci (push) Successful in 1m14s
ci / ci (pull_request) Successful in 34s
2025-03-24 18:50:01 +01:00

View File

@ -56,8 +56,8 @@ Hooks.once("ready", () => {
module.service.register()
})
Hooks.on("preCreateChatMessage", (message: ChatMessage): void => {
if (message.isRoll && getSetting("sendToDiceTower") as Boolean) {
Hooks.on("preCreateChatMessage", (message: ChatMessage, _: any, settings: any): void => {
if (message.isRoll && settings?.rollMode === "publicroll" && getSetting("sendToDiceTower") as Boolean) {
let results = []
let command = "";
message.rolls.forEach(roll => {