Skip to content

Commit

Permalink
Merge pull request #2431 from gmt2001/patch-235
Browse files Browse the repository at this point in the history
Patch 235
  • Loading branch information
gmt2001 committed Jan 1, 2021
2 parents 1078029 + 19274ca commit 487f078
Show file tree
Hide file tree
Showing 607 changed files with 802 additions and 1,760 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
8 changes: 5 additions & 3 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<!--
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -25,9 +25,9 @@

<property environment="env" />
<!-- Please see this for version numbers: https://semver.org/ -->
<property name="version" value="3.3.5" />
<property name="version" value="3.4.0" />
<!-- Please see this for version numbers: https://semver.org/ -->
<property name="webpanel.version" value="1.3.0" />
<property name="webpanel.version" value="1.4.0" />
<property name="src" location="source" />
<property name="reference" location="lib" />
<property name="build" location="build" />
Expand Down Expand Up @@ -177,6 +177,7 @@
<javac target="11" source="11" debug="on" destdir="${classes}" srcdir="${src}" includeantruntime="false" >
<compilerarg value="-Xlint:unchecked" />
<compilerarg value="-Xlint:-options" />
<compilerarg value="-XDenableSunApiLintControl" />
<compilerarg line="--add-exports java.base/sun.security.x509=ALL-UNNAMED" />
<classpath refid="reference.class.path" />
</javac>
Expand All @@ -192,6 +193,7 @@
<javac target="11" source="11" debug="on" destdir="${classes}" srcdir="${src}" includeantruntime="false" >
<compilerarg value="-Xlint:all" />
<compilerarg value="-Xlint:-options" />
<compilerarg value="-XDenableSunApiLintControl" />
<compilerarg line="--add-exports java.base/sun.security.x509=ALL-UNNAMED" />
<classpath refid="reference.class.path" />
</javac>
Expand Down
2 changes: 1 addition & 1 deletion development-resources/jlink-jdk11-linux.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/jlink-jdk11-macos.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/jlink-jdk11.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
REM
REM Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
REM Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
REM
REM This program is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/launch-jdb.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off

REM
REM Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
REM Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
REM
REM This program is free software: you can redistribute it and/or modify
REM it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/parse_commandpath.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl

#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/parse_commandpath_to_json.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl

#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/parse_discordcommandpath.pl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl

#
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion development-resources/parse_transformers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
# Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down
3 changes: 0 additions & 3 deletions docs/guides/content/commands/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,10 @@
| ./handlers/followHandler.js | !shoutout | !shoutout [streamer] | Give a shout out to a streamer. |
| ./handlers/gameScanHandler.js | !gamescan | !gamescan [game name] | Scan for a recently played game and list the date in which the broadcaster played it. |
| ./handlers/hostHandler.js | !hosttoggle | !hosttoggle | Toggles host announcements. |
| ./handlers/hostHandler.js | !autohosttoggle | !autohosttoggle | Toggles auto host announcements. |
| ./handlers/hostHandler.js | !hostreward | !hostreward [amount] | Set the amount of points to reward when a channel starts hosting |
| ./handlers/hostHandler.js | !autohostreward | !autohostreward [amount] | Set the amount of points to reward when a channel starts autohosting |
| ./handlers/hostHandler.js | !hostrewardminviewers | !hostrewardminviewers [amount] | The number of viewers in the hosted channel required to provide a reward. |
| ./handlers/hostHandler.js | !hostminviewers | !hostminviewers [amount] | The number of viewers in the hosted channel required to trigger the chat alert. |
| ./handlers/hostHandler.js | !hostmessage | !hostmessage [message] | Set a message given when a channel hosts |
| ./handlers/hostHandler.js | !autohostmessage | !autohostmessage [message] | Set a message given when a channel autohosts |
| ./handlers/hostHandler.js | !hosthistory | !hosthistory [on/off] | Enable or disable collection of host history data for the Panel. |
| ./handlers/hostHandler.js | !host | !host [channel name] | Will host that channel. Make sure to add your bot as a channel editor on your Twitch dashboard for this to work. |
| ./handlers/hostHandler.js | !unhost | !unhost | Will unhost the channel that is being hosted. Make sure to add your bot as a channel editor on your Twitch dashboard for this to work. |
Expand Down
1 change: 0 additions & 1 deletion docs/guides/content/commands/discord-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
| ./discord/handlers/followHandler.js | !followhandler channel | !followhandler channel [channel name] | Sets the channel that announcements from this module will be said in. |
| ./discord/handlers/hostHandler.js | !hosthandler toggle | !hosthandler toggle | Toggles the hosts announcements. |
| ./discord/handlers/hostHandler.js | !hosthandler hostmessage | !hosthandler hostmessage [message] | Sets the host announcement message. |
| ./discord/handlers/hostHandler.js | !hosthandler hostmessage | !hosthandler hostmessage [message] | Sets the auto-host announcement message. |
| ./discord/handlers/hostHandler.js | !hosthandler channel | !hosthandler channel [channel name] | Sets the channel that announcements from this module will be said in. |
| ./discord/handlers/keywordHandler.js | !keyword add | !keyword add [keyword] [response] | Adds a custom keyword. |
| ./discord/handlers/keywordHandler.js | !keyword edit | !keyword edit [keyword] [response] | Edits a custom keyword. |
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
Expand Down
2 changes: 1 addition & 1 deletion docs/oauth/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
Expand Down
2 changes: 1 addition & 1 deletion docs/panel/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion docs/panel/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
34 changes: 7 additions & 27 deletions docs/panel/js/pages/alerts/alerts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -295,8 +295,8 @@ $(function() {
// Host settings button.
$('#hostHandlerSettings').on('click', function() {
socket.getDBValues('alerts_get_host_settings', {
tables: ['settings', 'settings', 'settings', 'settings', 'settings', 'settings', 'settings', 'settings', 'settings'],
keys: ['hostReward', 'autoHostReward', 'hostMinViewerCount', 'hostMinCount', 'hostMessage', 'autoHostMessage', 'hostHistory', 'hostToggle', 'autoHostToggle']
tables: ['settings', 'settings', 'settings', 'settings', 'settings', 'settings'],
keys: ['hostReward', 'hostMinViewerCount', 'hostMinCount', 'hostMessage', 'hostHistory', 'hostToggle']
}, true, function(e) {
helpers.getModal('host-alert', 'Host Alert Settings', 'Save', $('<form/>', {
'role': 'form'
Expand All @@ -319,19 +319,6 @@ $(function() {
// Appen the reward box
.append(helpers.getInputGroup('host-reward', 'number', 'Host Reward', '', e.hostReward,
'Reward given to the user when they hosts to the channel.'))))
// Append second collapsible accordion.
.append(helpers.getCollapsibleAccordion('main-2', 'Auto-Host Settings', $('<form/>', {
'role': 'form'
})
// Add toggle for normal hosts
.append(helpers.getDropdownGroup('autohost-toggle', 'Enable Auto-Host Alerts', (e.autoHostToggle === 'true' ? 'Yes' : 'No'), ['Yes', 'No'],
'If a message should be said in the channel when someone auto-hosts the channel.'))
// Append message box for the message
.append(helpers.getTextAreaGroup('autohost-msg', 'text', 'Auto-Host Message', '', e.autoHostMessage,
'Message said when someone auto-hosts the channel. Tags: (name), (alert), (playsound), (reward), and (viewers)', false))
// Appen the reward box
.append(helpers.getInputGroup('autohost-reward', 'number', 'Auto-Host Reward', '', e.autoHostReward,
'Reward given to the user when they auto-hosts the channel.'))))
// Append third collapsible accordion.
.append(helpers.getCollapsibleAccordion('main-3', 'Extra Settings', $('<form/>', {
'role': 'form'
Expand All @@ -349,9 +336,6 @@ $(function() {
let hostToggle = $('#host-toggle').find(':selected').text() === 'Yes',
hostMsg = $('#host-msg'),
hostReward = $('#host-reward'),
autoHostToggle = $('#autohost-toggle').find(':selected').text() === 'Yes',
autoHostMsg = $('#autohost-msg'),
autoHostReward = $('#autohost-reward'),
hostHistory = $('#host-history').find(':selected').text() === 'Yes',
hostMinPoints = $('#host-minpoint'),
hostMinAlert = $('#host-minalert');
Expand All @@ -360,19 +344,15 @@ $(function() {
switch (false) {
case helpers.handleInputString(hostMsg):
case helpers.handleInputNumber(hostReward, 0):
case helpers.handleInputString(autoHostMsg):
case helpers.handleInputNumber(autoHostReward, 0):
case helpers.handleInputNumber(hostMinPoints, 0):
case helpers.handleInputNumber(hostMinAlert, 0):
break;
default:
socket.updateDBValues('alerts_update_host_settings', {
tables: ['settings', 'settings', 'settings', 'settings', 'settings', 'settings', 'settings',
'settings', 'settings'],
keys: ['hostReward', 'autoHostReward', 'hostMinViewerCount', 'hostMinCount', 'hostMessage',
'autoHostMessage', 'hostHistory', 'hostToggle', 'autoHostToggle'],
values: [hostReward.val(), autoHostReward.val(), hostMinPoints.val(), hostMinAlert.val(),
hostMsg.val(), autoHostMsg.val(), hostHistory, hostToggle, autoHostToggle]
tables: ['settings', 'settings', 'settings', 'settings', 'settings', 'settings'],
keys: ['hostReward', 'hostMinViewerCount', 'hostMinCount', 'hostMessage', 'hostHistory', 'hostToggle'],
values: [hostReward.val(), hostMinPoints.val(), hostMinAlert.val(),
hostMsg.val(), hostHistory, hostToggle]
}, function() {
socket.sendCommand('alerts_update_host_settings_cmd', 'reloadhost', function() {
// Close the modal.
Expand Down
2 changes: 1 addition & 1 deletion docs/panel/js/pages/audio/audioHooks.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion docs/panel/js/pages/commands/aliases.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down
2 changes: 1 addition & 1 deletion docs/panel/js/pages/commands/custom.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2016-2020 phantombot.github.io/PhantomBot
* Copyright (C) 2016-2021 phantombot.github.io/PhantomBot
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down

0 comments on commit 487f078

Please sign in to comment.