KarlOfDuty / SCPDiscord

A NWAPI plugin which adds remote interaction to an SCP:SL server through Discord.
https://karlofduty.com
GNU General Public License v3.0
14 stars 15 forks source link

Redesign the network system threading #182

Open KarlOfDuty opened 3 weeks ago

KarlOfDuty commented 3 weeks ago

The current system of spawning the BotListener through a thread that calls its constructor with an infinite loop in it isn't the best design. It should probably just be a singleton with a start and stop function for the network system to call. Same with how the network system is spawned to begin with.