Commit Graph

823 Commits

Author SHA1 Message Date
Salanto
0a0e36f4fe
Symmetry is everything
Co-authored-by: Rosemary Witchaven <32779090+in1tiate@users.noreply.github.com>
2022-03-10 19:41:58 +01:00
Salanto
464eab3515 Make /getareas work like its Tsu counterpart
This is honestly the better variant. ngl.
Fixes #235
2022-03-09 09:14:07 +01:00
Salanto
cde07b5c50
Add server description to the PN packet (#230)
* Add SDESC packet

This packet allows servers to overwrite the server description, allowing them to display them even in the favourites menu.

* Un-Add SDESC and hijack PN to supply description
2022-02-15 17:52:48 -06:00
Rosemary Witchaven
ef85d6d5ad
Merge pull request #229 from Salanto/option/tsu-playerids
Switch queue with stack
2022-02-07 17:12:25 -06:00
Salanto
3193e8e7f4 Switch queue with stack
Adds a bias towards lower user ids.
This change is purely aesthetic to bring Akashi closer to a tsu-like userid assignment.
2022-02-07 22:29:50 +01:00
in1tiate
83c41c05f7 Squashed commit of the following:
commit e946bf124602f224ce0e371ba1374f0355b537eb
Merge: d6a4e64 4505909
Author: Rosemary Witchaven <32779090+in1tiate@users.noreply.github.com>
Date:   Fri Jan 28 19:43:36 2022 -0600

    Merge pull request #225 from Salanto/Dynamic-Area-Musiclist-Take2

    Allow users to add custom songs to the music list on a per-area basis

commit 45059092d2888b60912f721e43a380910d10ccd8
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 24 22:05:27 2022 +0100

    TIL what a typedef is

commit 02584db9640fff0a1969a7f516c4bccfae9b5388
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 24 21:39:17 2022 +0100

    Not all OR are equal. Explain weird command splitting

    Remove hardcoded URLs

commit d00ebd5692296cd0c29dd377113b53fe0e7b99c0
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 24 21:28:08 2022 +0100

    Salanto PR Language Update by in1tiate

    As usual, my English is absolutely unreadable.

    Co-authored-by: Rosemary Witchaven <32779090+in1tiate@users.noreply.github.com>

commit d3842106e06350dc02d8864bb28232fdc5643f00
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 24 20:35:32 2022 +0100

    Add missing config file + document commands for help

commit ac64360e1c1741023b01052977de77a7d5ea4f8c
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 24 19:52:13 2022 +0100

    Minor improvements to command usage and addition of clear command

commit c614578e78ce9afa0c8e22aa36bdf46a70a97169
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 23 22:19:54 2022 +0100

    Purge last traces of old songInformation system

commit 07618761f044a13d75587b28a9c994342a5980e2
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 23 22:10:54 2022 +0100

    Working version, needs some refinement and debugging in AOClient

commit 33c0358c98c0fd2de805356a9aa3ac7bbed204e1
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 23 21:48:05 2022 +0100

    Almost functional implementation

    Now only need to determine why I can't play the customs yet

commit b0acbace78b3f16f2fe4f3c6f65a422e3343f992
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 23 15:26:42 2022 +0100

    Fix build error, expand validation test slightly

commit a48c4f503998ce8e42f0bb409c5a3c7dc5e40329
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 23 01:03:27 2022 +0100

    Add commands

commit 88ab0b473953873166e291e5009b97df31547b3f
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sat Jan 22 15:10:26 2022 +0100

    Float sucks, int has to be good enough

    + add retrival of song information

commit e924e1340be1a0909eba84072f1646fe9770bd02
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Thu Jan 20 22:28:35 2022 +0100

    Fix removing moving

    Add necessary tests

commit 3df088f8d07ce7e0d8fe08b6a97608a623e6ef97
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Wed Jan 19 19:34:16 2022 +0100

    Start work on adding this shit into commands

commit c293ecfa99d1b2bd1e0b34cb8752d69b2eca057c
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Tue Jan 18 19:07:11 2022 +0100

    Fix typo and add singal for incremental upgrades

commit 10a42322e1e23af5795278a40b2ac59f3ab952ef
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Tue Jan 18 06:17:51 2022 +0100

    Hookup packet sending to music manager

    This might sound like a bad idea on first glance, but otherwise it breaks the AreaData tests and I am NOT gonna try to fix those without even understanding why they break.

commit 319836296374162b0b847432e8a626778317b869
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Tue Jan 18 06:17:51 2022 +0100

    Enraged comments, make area send FM packet

    Revert "Enraged comments, make area send FM packet"

    This reverts commit ec7a1a25646b2c2acc8a3a748b853851cc47d205.

commit 224a0d7efe989a5f336167c3f716061813f93ee3
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Tue Jan 18 05:10:18 2022 +0100

    Change packet communication from area to client

    First steps to hookup the custom musiclist.

commit 65aa8f7855a36f2c668b1399a5ed22fefeaf186d
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 17 00:48:38 2022 +0100

    Add test for custom list sanitisation.

    + Fix intentionally broken tests

commit 7c00ab437a6ff12033742d029ce49037f5bb1ebe
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Mon Jan 17 00:29:51 2022 +0100

    Sanitise the custom list opposed to deleting it

    This will fail tests intentionally to test the CI.

commit 80ad401267068e75707b2517a0bf836763141f8b
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 16 17:17:12 2022 +0100

    Add custom category capabilities

commit 08d8f5f8f683816ceba532f9c47cd0d5ab34389a
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sun Jan 16 03:58:18 2022 +0100

    Fix music addition and move relevant tests

commit 6ebf0d03b5da61a9c287115009d28038710ba7af
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sat Jan 15 08:08:20 2022 +0100

    Hookup music_manager into server, change default musiclist source for new clients

    + More tests 🆒

commit bd50c62376f131e2508ecdd3e272209894ecaec1
Author: Salanto <62221668+Salanto@users.noreply.github.com>
Date:   Sat Jan 15 03:13:42 2022 +0100

    Add central song validator for other classes

    Also added applicable test cases to ensure proper operation.
2022-01-28 19:51:30 -06:00
Rosemary Witchaven
d6a4e64070
Merge pull request #224 from Salanto/addClientIDtoArea
Change broadcast to area to use userIDs instead of iterating over all joined clients.
2022-01-24 13:49:54 -06:00
Rosemary Witchaven
084e98240c
Merge pull request #223 from Salanto/Advanced-Musiclist
Add ability for the musiclist entires to be an alias of another song.
2022-01-24 13:48:33 -06:00
Rosemary Witchaven
505ff57e1f
Merge pull request #227 from Salanto/fix/character-unselect
Change regex interpretation
2022-01-24 13:46:14 -06:00
Salanto
5d9a5b1305 Change String interpretation of the regex
Maybe fixes #226
2022-01-23 22:57:45 +01:00
Salanto
7e8ea8b35c Keep record of joined userIds in area.
Adds the server-assigned clientid to the area, allowing the server to exclusively broadcast to this area without checking each clients area, instead pulling a list of them from the area itself and sending exclusively to them.

Tests have been adjusted to account that area leaving and joining can now be identified by userid.
2022-01-14 04:45:38 +01:00
Salanto
8c3ea52f94 Allow songs to be aliased.
Allows you to alias songs by providing the main name as a "Friendly name", while the actual song name can be an URL or a different name.

Solves the ancient issue of "but MOM, it's called [Insert Japanese Weaboo name here" and allows servers without dedicated WebAO repository to have their music be streams.
2022-01-09 04:17:21 +01:00
Rosemary Witchaven
0b35f11763
Merge pull request #222 from Salanto/purge-ms2-take2
Take 2 : Purge ms2 advertiser and change naming
2022-01-07 16:38:06 -06:00
Rosemary Witchaven
d26912a1f8
Merge pull request #221 from Salanto/change-userID-shenanigans
Simplify code for user id assignment
2022-01-07 16:37:56 -06:00
Salanto
68270f69cb Purge ms2 advertiser and streamline naming 2022-01-07 23:18:54 +01:00
Salanto
5989ed2851 Simplify code to determine user id 2021-12-30 11:22:46 +01:00
Rosemary Witchaven
b64030ae68
Merge pull request #219 from Salanto/fix-modern-advertiser
Fix incorrect playercount when advertising
2021-12-21 07:46:38 -06:00
Salanto
659d53f0a3 Fix incorrect playercount when advertising
+ Some design changes because they are better imo. Fight me.
2021-12-20 01:07:10 +01:00
Salanto
2083219b39 Version bump to 1.5 2021-12-18 00:58:13 +01:00
Salanto
57dc4ee9ec
Merge pull request #218 from Salanto/area_message
Add Area Messages
2021-12-17 21:24:40 +01:00
Salanto
dabc7c1abe Apply suggestion batch that fixes bad english
Co-Authored-By: Rosemary Witchaven <32779090+in1tiate@users.noreply.github.com>
2021-12-17 21:19:15 +01:00
Rosemary Witchaven
f26613af6c
Merge pull request #217 from Salanto/logstringer-loading-nonesense
Fix non-functional logger with older config folders.
2021-12-16 23:55:03 -06:00
Salanto
de3680eb87 Add backwards compatability with older config folders
Prevents an oopsie where logs are non-functional when the config folder was not updated yet.
Also, it's reloadable. How neat is that?
2021-12-17 02:42:54 +01:00
Salanto
9d9cbdb4e2 Implement an area specific message
This feature improves RP/Casing slightly by allowing an automatic message to be send when they enter the area.
2021-12-17 02:31:52 +01:00
Rosemary Witchaven
48dc849b32
Merge pull request #201 from PresJoeBiden/Keeping-People-Out-With-an-IP-Subnet-Ban,-man!
Executive Order 14042 : Implement IPRange Ban
2021-12-13 19:30:42 -06:00
Rosemary Witchaven
2b5bccc959
Merge pull request #214 from Salanto/better-packet-targeting
Make it easier to reuse code targeting specific user groups
2021-12-08 13:56:03 -06:00
Rosemary Witchaven
64c1d01876
Merge pull request #216 from Salanto/me-log-ugly-pls-fix
Make log entries formatting reloadable and configurable
2021-12-02 13:44:17 -06:00
Salanto
0cd270abd1
Merge pull request #215 from Salanto/yes-we-know 2021-11-23 19:44:46 +01:00
Salanto
a3d89c352c Make log entries formatting reloadable and configurable 2021-11-21 16:43:55 +01:00
Salanto
efa1dd0a42 Add vanilla content host to default config 2021-11-20 20:02:25 +01:00
Salanto
578aee2251 More example implementation. 2021-11-20 18:15:36 +01:00
Salanto
d943981ef1 Allow easier handling of targeting user groups when sending packets 2021-11-20 18:15:36 +01:00
Salanto
7dbbf41d33 Add IPID to global messages when user is authenticated
This adds the ability to send altered packets to a specific group of users and the original to everyone else.
2021-11-20 18:15:36 +01:00
Salanto
d92ba88cb7 Add mapped IPv4 address parser. 2021-11-14 13:28:37 +01:00
stonedDiscord
6c15aa2164 just make it public 🤡 2021-11-14 13:28:37 +01:00
stonedDiscord
7acc70464e web clients get removed later by the proxy 2021-11-14 13:28:37 +01:00
stonedDiscord
3ac0bc6247 add web range bans 2021-11-14 13:28:37 +01:00
stonedDiscord
09df305de2 add example ranges
https://en.wikipedia.org/wiki/Reserved_IP_addresses
2021-11-14 13:28:37 +01:00
Salanto
ae190311bd Reload the list so that vile people shall no longer enter 2021-11-14 13:28:37 +01:00
Salanto
d68fb66759 Executive Order 14042 : Implement IPRange Ban 2021-11-14 13:27:55 +01:00
Salanto
30b769b282 Version bump to 1.4 2021-11-14 03:04:14 +01:00
Rosemary Witchaven
535134db98
Merge pull request #212 from Salanto/db-shenanigans
Fix database permission error when database is first created
2021-10-04 15:22:58 -05:00
Salanto
d8a166ea60 Fix database permission error when database is first created
It was apparently perfectly acceptable to some that it shows an error when the file did not even have a chance to exist.
2021-10-04 22:17:24 +02:00
Rosemary Witchaven
6e61998278
Merge pull request #209 from Salanto/Signal-success
Add neccessary error and success message to cmdCharSelect
2021-10-02 08:33:09 -05:00
Salanto
d3a46b8ce2 Add more error messages and tell the mod if the command actually worked. 2021-10-02 14:57:45 +02:00
Rosemary Witchaven
f1b998b945
Merge pull request #208 from Salanto/webhook_color
Add optional color configuration
2021-09-20 14:34:25 -05:00
Salanto
2c96e2683f Add optional color configuration 2021-09-20 21:09:28 +02:00
Rosemary Witchaven
e041d4f94a
Merge pull request #207 from Salanto/Fix-Helpfile
Remove trailing comma in helpfile
2021-09-20 09:32:39 -05:00
Salanto
3ec07bdf89 Remove trailing comma in helpfile 2021-09-19 18:51:28 +02:00
Rosemary Witchaven
b9b54ef7ba
Merge pull request #206 from Salanto/cmdClearCM
Implement clearcm command
2021-09-19 10:16:17 -05:00