but actually now

This commit is contained in:
TheUbMunster 2023-07-11 05:04:54 -06:00
parent f15ded0981
commit cfe6c3eecf
3 changed files with 4 additions and 2 deletions

View File

@ -82,7 +82,7 @@ Banlist: banned people are unable to join the server, default: false
PersistShines/Moons: Allows the server to remember moon progress across crashes/restarts
### Discord
Note: Token, LogChannel and CommandChannel need to have quotes "" around it
Note: Token, AdminChannel (formerly known as "LogChannel") and CommandChannel need to have quotes "" around it
Token: the token of the bot you want to load into, default: null
Prefix: the bot prefix to be used, default: $
CommandChannel: allows discord commands, default: null

View File

@ -37,6 +37,9 @@ public class DiscordBot
Logger.AddLogHandler(LogToDiscordLogChannel);
}
//this nonsense is to prevent race conditions from starting multiple bots.
//this would be a great thing to instead simply have an "await Init()" put
//in the ctor (but awaits can't be there), and Task.Wait shouldn't be used that way.
private object firstInitLockObj = new object();
public async Task FirstInit()
{

View File

@ -13,7 +13,6 @@
<ItemGroup>
<PackageReference Include="Discord.Net" Version="3.8.1" />
<!--<PackageReference Include="DSharpPlus" Version="4.3.0-nightly-01142" />-->
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>