Skip to content

Commit

Permalink
feat(Bot): no guild id warn
Browse files Browse the repository at this point in the history
  • Loading branch information
LumiFae committed Dec 23, 2024
1 parent f2daa46 commit e40a2c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions DiscordLab.Bot/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ public override void OnEnabled()
Log.Error("Please set the bot token in the config file.");
return;
}

if (Config.GuildId is 0)
{
Log.Warn("You have no guild ID set in the config file, you might get errors until you set it. " +
"If you plan on having guild IDs separate for every module then you can ignore this. " +
"For more info go to here: https://github.com/DiscordLabSCP/DiscordLab/wiki/Installation#guild-id");
}

Instance = this;

Expand Down

0 comments on commit e40a2c4

Please sign in to comment.