Compare commits
1 Commits
master
...
debug_bran
Author | SHA1 | Date | |
---|---|---|---|
|
ed86405263 |
@@ -7,10 +7,10 @@ COPY ["EventBot/EventBot.csproj", "EventBot/"]
|
||||
RUN dotnet restore "EventBot/EventBot.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/EventBot"
|
||||
RUN dotnet build "EventBot.csproj" -c Release -o /app
|
||||
RUN dotnet build "EventBot.csproj" -c Debug -o /app
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "EventBot.csproj" -c Release -o /app
|
||||
RUN dotnet publish "EventBot.csproj" -c Debug -o /app
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
|
@@ -58,7 +58,7 @@ namespace EventBot.Services
|
||||
var context = new SocketCommandContext(_discord, message);
|
||||
GuildConfig guildConfig = context.Guild != null ? _database.GuildConfigs.FirstOrDefault(g => g.GuildId == context.Guild.Id) : null;
|
||||
if (!message.HasMentionPrefix(_discord.CurrentUser, ref argPos))
|
||||
if (guildConfig != null && string.IsNullOrEmpty(guildConfig.Prefix))
|
||||
if (guildConfig != null)
|
||||
{
|
||||
if (!message.HasStringPrefix(guildConfig.Prefix, ref argPos))
|
||||
return;
|
||||
|
Reference in New Issue
Block a user