Compare commits
1 Commits
debug_bran
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
060d9e3785 |
@@ -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 Debug -o /app
|
RUN dotnet build "EventBot.csproj" -c Release -o /app
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "EventBot.csproj" -c Debug -o /app
|
RUN dotnet publish "EventBot.csproj" -c Release -o /app
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
@@ -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)
|
if (guildConfig != null && string.IsNullOrEmpty(guildConfig.Prefix))
|
||||||
{
|
{
|
||||||
if (!message.HasStringPrefix(guildConfig.Prefix, ref argPos))
|
if (!message.HasStringPrefix(guildConfig.Prefix, ref argPos))
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user