but actually now
This commit is contained in:
parent
f15ded0981
commit
cfe6c3eecf
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
{
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue