Commit Graph

346 Commits

Author SHA1 Message Date
Zorchenhimer
fd95fa708f Add MIT license 2020-07-09 18:48:08 -04:00
Nick
1828ee5999
Merge pull request #130 from dunn/doc-commands
readme: document new command-line options
2020-06-25 00:26:20 -04:00
Alex Dunn
4167c995fc readme: document new command-line options 2020-06-24 21:18:43 -07:00
Zorchenhimer
630abfe474 Add option to change the RTMP listen address
A new setting has been added to change the address and port that the
RTMP server listens on.  `RtmpListenAddress` in the settings json and
`-r` on the command line.  Both options use the same format:
`host:port`.
2020-06-12 23:58:45 -04:00
Nick
fa206980e7
Merge pull request #126 from dunn/dockerignore
add dockerignore file
2020-06-10 22:59:28 -04:00
Nick
f0553d5540
Merge pull request #125 from dunn/docs
readme: document settings.json
2020-06-09 01:59:01 -04:00
Alex Dunn
24bb7f8a5c add dockerignore file 2020-06-08 22:19:09 -07:00
Alex Dunn
e8833b16e1 readme: add table of contents 2020-06-08 19:33:48 -07:00
Alex Dunn
43e70eb9af readme: document settings.json 2020-06-08 19:29:50 -07:00
Nick
523f648379
Merge pull request #124 from dunn/emote-grid
emotes: display in grid instead of one per line
2020-06-08 11:00:07 -04:00
Nick
17ce730d65
Merge pull request #123 from dunn/scss
extract inlined css into conditional classes
2020-06-08 10:59:28 -04:00
Alex Dunn
25890d22c7 emotes: display in grid instead of one per line 2020-06-07 14:36:52 -07:00
Alex Dunn
d4d513420c extract inlined css into conditional classes 2020-06-06 17:54:37 -07:00
Nick
fb32ba7348
Merge pull request #121 from dunn/color-contrast
colors: remove colors that aren't AA accessible
2020-06-05 12:31:28 -04:00
Nick
9595f592bd
Merge pull request #122 from dunn/emote-oauth
emotes: send OAuth secret token to Twitch when fetching emotes
2020-06-05 12:31:05 -04:00
Alex Dunn
391db3f0bf emotes: send OAuth secret token to Twitch when fetching emotes
As of last month, requests made to the Twitch Helix API require an OAuth token
as well as the Client ID: https://discuss.dev.twitch.tv/t/requiring-oauth-for-helix-twitch-api-endpoints/23916
2020-06-04 00:32:01 -07:00
Alex Dunn
086d22a941 colors: remove colors that aren't AA accessible
per https://webaim.org/resources/contrastchecker/
2020-06-03 22:30:45 -07:00
Alex Dunn
c8fba1dc5b colors: each on one line 2020-06-03 22:27:15 -07:00
Nick
c9e7af72b4
Merge pull request #120 from dunn/lurk
add new setting to suppress join/leave announcements
2020-06-04 00:55:47 -04:00
Alex Dunn
9b85475fe4 add new setting to suppress join/leave announcements 2020-06-03 19:47:57 -07:00
Alex Dunn
d28d6e7635 sort settings.json 2020-06-03 19:45:54 -07:00
Nick
c91e5f5e1e
Merge pull request #119 from dunn/custom-title
allow customization of <title>
2020-06-03 17:56:52 -04:00
Alex Dunn
677a9fd9cb allow customization of <title> 2020-06-03 12:24:07 -07:00
Clif Gordon
de117eb5a9 Prepend @ symbol to names shown in user list, so they highlight
(cherry picked from commit abfeb0c1cf270e90496f42e3545eafd2dc518782)
2020-05-28 16:41:28 -04:00
Nick
d759a3d7ab
Merge pull request #115 from voldyman/overlay
Made video muted by default and added overlay to ask the user to unmute
2020-05-13 13:31:14 -04:00
Akshay Shekher
3a5e5f8dbe made overlay background darker 2020-05-13 05:57:08 -07:00
Akshay Shekher
5e5cb2d5b4 updated the mute icon 2020-05-12 20:33:00 -07:00
Akshay Shekher
95c0663684 Made video muted by default and added overlay to ask the user to unmute 2020-05-10 10:51:34 -07:00
Zorchenhimer
16c36ca9bc Don't wrap name highlights with colons
Name suggestions would wrap a name in colons instead of just emotes.  It
looks like this may have still worked fine, but it wasn't the correct
behavior.
2020-04-27 12:50:29 -04:00
Zorchenhimer
94a4f08467 Make suggestions popup insert wrapped emotes
The suggestions popup will now insert wrapped emotes instead of bare
word emotes.  This is so the autocompletion will still work if the
WrappedEmotesOnly setting is set to true.
2020-04-19 12:50:26 -04:00
Zorchenhimer
fab56e39ea Rework emote parsing to properly handle wrapped emotes
Reworked the emote parsing to properly handle "wrapped" emotes.  A
wrapped emote is one that is wrapped in colons or square braces (eg,
:Kappa: or [Kappa]).  This allows emotes to be input without a space
between them, like is required with non-wrapped emotes.

A new configuration setting has been added to only allow parsing of
wrapped emotes: "WrappedEmotesOnly".  This defaults to False as to not
break current configurations.

The emote autocompletion will only insert non-wrapped emotes.  Setting
"WrappedEmotesOnly" configuration value to True will not change this.

Lastly, made the bare-word emote parsing a bit cleaner by removing a for
loop in favor of a map lookup with a check.  This should in theory be
more efficient.

This change is in response to #111.  The issue should not be considered
resolved until the autocompletion handles the new setting correctly.
2020-04-19 12:26:27 -04:00
Zorchenhimer
ce2150f719 Add ability to set admin password at startup
The -a flag has been added to allow specifying a new admin password on
the command line.  This password will only be used for the current
session and will not be written to the configuration file.  If the
password contains spaces, wrap it in quotes on the command line.  The
quotes should be omitted with the /auth command.

Eg, starting the server with:
    ./MovieNight -a "the admin password"
the auth command in chat would be:
    /auth the admin password
2020-04-18 16:02:41 -04:00
Nick
d08eff1bdb
Merge pull request #110 from MichaelThomasMPT/master
Bans was present twice in the example settings.json file.
2020-04-18 15:29:28 -04:00
MichaelThomasMPT
474eeb1153 Bans was present twice in the example settings.json file. 2020-04-11 21:21:11 +08:00
Nick
10c2590677
Merge pull request #107 from nocylah/nocylah-mobile-tweaks
Tweak elements for mobile experience
2020-03-30 20:21:18 -04:00
Nick
c85e95ca3f
Merge pull request #108 from nocylah/nocylah-wasm-exec
Use system wasm_exec.js
2020-03-30 20:00:08 -04:00
Louis Jencka
3c55a8a1f3 Use system wasm_exec.js
The wasm_exec.js included in the repo didn't work in go1.14.1 - always
using the local go-provided wasm_exec.js should avoid this problem.
2020-03-29 20:47:42 -06:00
Louis Jencka
a399cf38e7 Tweak elements for mobile experience
This commit forces a device-width sized viewport, which makes for a much
more usable chat experience on mobile devices. A chat element min-size
is also removed to avoid screen overflow on mobile devices.
2020-03-29 20:45:51 -06:00
Nick
f7f63207c9
Merge pull request #104 from lukasklinger/master
Add Support for Docker
2020-03-22 11:13:14 -04:00
Zorchenhimer
6996621c0e Update Go version in readme
Also added instructions for installing a newer version of Go alongside
the OS version and using that instead.
2020-03-22 11:06:35 -04:00
Lukas
c15bf0c9e5 updated README to include instructions for Docker 2020-03-19 13:34:51 +01:00
Lukas
895cb5d58c added docker-compose file 2020-03-19 12:55:17 +01:00
Lukas
b4888d8069 added Dockerfile 2020-03-19 11:49:42 +01:00
Nick
5b06603977
Merge pull request #103 from rinpatch/fix/main-separately-typo
main.html: fix a typo in "Separately"
2020-02-15 14:21:12 -05:00
rinpatch
632efaeab9 main.html: fix a typo in "Separately" 2020-02-14 21:51:14 +03:00
Zorchenhimer
72a44b6170 Clean up Makefile
Removed the Darwin and Windows specific build targets.  Instead, the
system's build target will be used (as specified with the GOOS and
GOARCH environment variables).

Added a "server" build target.  This is mostly just for me to build the
binary that will be deployed on my own server.

Added the GO_VERSION environment variable to all the calls to the go
command.  This will allow easier building on systems that have installed
an additional version of Go along side their distribution's version.
Users wanting to build with one of these versions must first install it
with `go get` and `go[version] download` as detailed here:
https://golang.org/doc/install#extra_versions.

Setting the GO_VERSION environment variable to the version number will
use that version. Eg, setting it to "1.13.7" will call `go1.13.7 build
[...]` instead of `go build [...]`.
2020-01-30 14:56:44 -05:00
Zorchenhimer
c32838def6 Rework settings mutex and saving settings
- Move mutex into Settings struct
- Replace sync.Mutex with a sync.RWMutex
- Move adding approved emotes into a Settings method
- Save settings after adding emotes
- Wrap saving in a lock
2020-01-30 14:32:46 -05:00
Zorchenhimer
7feb277a33 Don't allow names that are the access pin
If a user tries to enter the pin as their name return an error instead
of accepting the name.
2019-11-30 10:27:06 -05:00
Zorchenhimer
8fc3f86135 Add an emote list
It's ugly, but it get's the job done.  This list will need to be
improved a lot (ie, make it searchable and maybe even clickable
emotes?).  This is for #99, but should not be considered fixed yet.
2019-11-29 12:48:17 -05:00
Zorchenhimer
528b29e0ff Make the login links easier to see
Changed the color of the three links under the login box to be easier to
read.  Also removed the underline unless it's being hovered over.
2019-11-29 12:46:53 -05:00