1 Commits

Author SHA1 Message Date
Karolis2011
ed86405263 DEbug docker file 2019-09-05 21:39:01 +03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -7,10 +7,10 @@ COPY ["EventBot/EventBot.csproj", "EventBot/"]
RUN dotnet restore "EventBot/EventBot.csproj" RUN dotnet restore "EventBot/EventBot.csproj"
COPY . . COPY . .
WORKDIR "/src/EventBot" 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 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 FROM base AS final
WORKDIR /app WORKDIR /app

View File

@@ -58,7 +58,7 @@ namespace EventBot.Services
var context = new SocketCommandContext(_discord, message); var context = new SocketCommandContext(_discord, message);
GuildConfig guildConfig = context.Guild != null ? _database.GuildConfigs.FirstOrDefault(g => g.GuildId == context.Guild.Id) : null; GuildConfig guildConfig = context.Guild != null ? _database.GuildConfigs.FirstOrDefault(g => g.GuildId == context.Guild.Id) : null;
if (!message.HasMentionPrefix(_discord.CurrentUser, ref argPos)) if (!message.HasMentionPrefix(_discord.CurrentUser, ref argPos))
if (guildConfig != null && string.IsNullOrEmpty(guildConfig.Prefix)) if (guildConfig != null)
{ {
if (!message.HasStringPrefix(guildConfig.Prefix, ref argPos)) if (!message.HasStringPrefix(guildConfig.Prefix, ref argPos))
return; return;