Skip to content

Commit 8937aef

Browse files
Add files via upload
1 parent b4d1d0a commit 8937aef

6 files changed

Lines changed: 31 additions & 22 deletions

File tree

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ This is my first time programming anything in about 27 years, as such, there may
1313
## Change Log ##
1414
The most recent [changelog.md](https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/blob/main/changelog.md)
1515

16-
## Installation ##
17-
For manual installation:
18-
* Open the main screen of FoundryVTT.
19-
* Go to the 'Add-on Modules' tab.
20-
* Click the button 'Install Module'.
21-
* Enter the following in the Manifest URL textbox: https://raw.githubusercontent.com/TabletopsAndAnvils/Foundry-Stream-Module/main/module.json
22-
* Click 'Install'.
2316
<img align="right" height="50%" width ="50%" src="https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/blob/main/img/Screen%20Shot%202021-01-25%20at%2017.12.24.png"><p>
2417
## Configuration ##
2518
- `Twitch Channel` - This is your Twitch stream name.
@@ -37,18 +30,19 @@ For manual installation:
3730
## Features ##
3831
- `Chat` - Two way communication between Foundry and Twitch.
3932
- `GM Moderation` - On the side controls there are buttons to Clear Twitch chat, Timeout or Ban viewers and a Raid button. Please note, in order for the Raid function to work you must be signed in through a browser as well in order to click on confirmation dialog.
33+
- `Roll Request` - GM/Moderator can request a roll from a Twitch viewer. If DSN is enabled the dice will roll within the Foundry canvas, if not the result will just be sent to the chat card.
4034

4135
# Links #
4236
* https://www.twitch.tv/tabletopsandanvils - My Twitch.tv where we livestream.
4337
* https://www.patreon.com/tabletopsandanvils - See what else I'm doing for Foundry.
4438
* https://www.youtube.com/channel/UCx1lu5HlZtmmk4JtsU_noSw - Tabletops & Anvils on Youtube.
4539

4640
## Acknowledgements ##
47-
Many thanks go out to the entire FoundryVTT community especially Atropos for creating it, just about everyone over in the #module-development channel on the FVTT Discord, League of Extraordinary FoundryVTT Developers, Melbz who wrote his own Twitch-bot for Foundry (https://bitbucket.org/Melbz/foundryvtt-twitch-bot/src/master/) that pointed me in the right direction for starting this module and Pint and Pie (https://github.com/thomasmckay) who is doing things with Twitch and Foundry that are absolutely mind-numbingly insane. His play through chat module lit the spark of inspiration for Foundry Stream Module many, many months ago!
41+
Many thanks go out to the entire FoundryVTT community especially Atropos for creating it, just about everyone over in the #module-development channel on the FVTT Discord, League of Extraordinary FoundryVTT Developers, cwendrowski for creating Tabbed Chatlog, Melbz who wrote his own Twitch-bot for Foundry (https://bitbucket.org/Melbz/foundryvtt-twitch-bot/src/master/) that pointed me in the right direction for starting this module and Pint and Pie (https://github.com/thomasmckay) who is doing things with Twitch and Foundry that are absolutely mind-numbingly insane. His play through chat module lit the spark of inspiration for Foundry Stream Module many, many months ago!
4842

4943
## License
5044
- This work is licensed under a [Creative Commons Attribution 4.0 International License](https://creativecommons.org/licenses/by/4.0/legalcode).
5145
- This work is licensed under the [Foundry Virtual Tabletop EULA - Limited License Agreement for Module Development](https://foundryvtt.com/article/license/).
5246

5347
### Bugs
54-
- View current known bugs in the [Issue Tracker Backlog](https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/issues)
48+
- View current known bugs in the [Issue Tracker Backlog](https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/issues)

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## Release 0.2.6
2+
- Added user requested output to dice roll requests. Roll request now outputs the forumula + rolltotal to Twitch after a request has been rolled. Ie 'Julia rolls
3+
1d20 = [19] Thank you for the roll!'
4+
- Updated localization file to reflect above change.
5+
- Updated default configuration for above.
6+
7+
## Release 0.2.5
8+
- Minor hotfix to module.json
9+
110
## Release 0.2.4
211
- Added option from directly within Request Roll to hide the roll from players. This is not a blindroll, it is a gmroll to the GM and/or their moderator(s)
312
depending on who made the request. While this has always been possible by using the drop down selector in the chat box itself, this is here as a matter of

lang/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@
5959
"fsMod.tabs.fsm": "Twitch",
6060

6161
"fsMod.settings.thankRoll.name": "Roll Received Message",
62-
"fsMod.settings.thankRoll.hint": "How you want to thank your viewer for their roll. This message will automatically include the viewer who rolled the request at the end of it, be sure to include an extra space after your final character. Example: Thank you for the roll,"
62+
"fsMod.settings.thankRoll.hint": "How you want to thank your viewer for their roll. The output for this message is 'viewername rolls diceformula = [dicetotal] yourmessage' Example: Julia rolls 1d20 = [19] Thank you for the roll!"
6363
}

module.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"patreon": "TabletopsAndAnvils"
1313
}
1414
],
15-
"version": "0.2.5",
15+
"version": "0.2.6",
1616
"minimumCoreVersion": "0.7.5",
17-
"compatibleCoreVersion": "0.7.9",
17+
"compatibleCoreVersion": "0.8.0",
1818

1919
"styles": [
2020
"/styles/fsmtabs.css"
@@ -46,15 +46,15 @@
4646
}
4747
],
4848
"media":[
49-
{
49+
{
5050
"type": "cover",
5151
"link": "https://raw.githubusercontent.com/TabletopsAndAnvils/Foundry-Stream-Module/main/img/fsm-cover.png"
52-
}
52+
}
5353
],
5454
"bugs": "https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/issues",
5555
"allowBugReporter": true,
5656
"url": "https://github.com/TabletopsAndAnvils/Foundry-Stream-Module",
5757

5858
"manifest": "https://raw.githubusercontent.com/TabletopsAndAnvils/Foundry-Stream-Module/main/module.json",
59-
"download": "https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/archive/0.2.5.zip"
59+
"download": "https://github.com/TabletopsAndAnvils/Foundry-Stream-Module/archive/0.2.6.zip"
6060
}

scripts/fsmcore.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,11 +490,14 @@ export function diceWait(dice, who, priv) { // G M R E Q U E S T R O L L
490490
if (whoIs != idCheck) { return diceWait(dice, who); }
491491
if (whoIs == idCheck) {
492492
if (priv === 'true') {
493-
new Roll(res).roll().toMessage({ speaker: { alias: `${tags["display-name"]}` } }, { rollMode: "gmroll" })
493+
let roll = new Roll(res).roll()
494+
let xroll = roll.toMessage({ speaker: { alias: `${tags["display-name"]}` } }, { rollMode: "gmroll" })
495+
fsMod.client.say(myChannel, `${tags["display-name"]} rolls ` + dice + ` = [` + roll.total + `] ` + thankRoll);
494496
} else {
495-
new Roll(res).roll().toMessage({ speaker: { alias: `${tags["display-name"]}` } });
497+
let roll = new Roll(res).roll()
498+
let xroll = roll.toMessage({ speaker: { alias: `${tags["display-name"]}` } });
499+
fsMod.client.say(myChannel, `${tags["display-name"]} rolls ` + dice + ` = [` + roll.total + `] ` + thankRoll);
496500
}
497-
fsMod.client.say(myChannel, thankRoll + ` ${tags["display-name"]}!`);
498501
return;
499502
}
500503
} return diceWait(dice, who);
@@ -513,11 +516,14 @@ export function diceWaitAll(dice, priv) { // G M R E Q U E S T R O L L -
513516
let res = message.slice(3);
514517
let thankRoll = game.settings.get("streamMod", "streamThank"); //(localize('settings.thankRoll.req'));
515518
if (priv === 'true') {
516-
new Roll(res).roll().toMessage({ speaker: { alias: `${tags["display-name"]}` } }, { rollMode: "gmroll" })
519+
let roll = new Roll(res).roll()
520+
let xroll = roll.toMessage({ speaker: { alias: `${tags["display-name"]}` } }, { rollMode: "gmroll" })
521+
fsMod.client.say(myChannel, `${tags["display-name"]} rolls ` + dice + ` = [` + roll.total + `] ` + thankRoll);
517522
} else {
518-
new Roll(res).roll().toMessage({ speaker: { alias: `${tags["display-name"]}` } });
523+
let roll = new Roll(res).roll()
524+
let xroll = roll.toMessage({ speaker: { alias: `${tags["display-name"]}` } });
525+
fsMod.client.say(myChannel, `${tags["display-name"]} rolls ` + dice + ` = [` + roll.total + `] ` + thankRoll);
519526
}
520-
fsMod.client.say(myChannel, thankRoll + ` ${tags["display-name"]}`);
521527
return;
522528
}
523529
else return diceWaitAll(dice);

scripts/settings.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ function registerSettings() { // R E G I S T E R M O D U L E S E T T I N G S
279279
config: true,
280280
scope: "world",
281281
type: String,
282-
default: "Thank you for the roll, ",
282+
default: "Thank you for the roll!",
283283
restricted: true,
284284
}
285285
},

0 commit comments

Comments
 (0)