Skip to content

Commit

Permalink
T #98 bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HueByte committed Oct 23, 2022
1 parent 4cc740c commit 9a7bdb3
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public async Task GetServerInfo()

[SlashCommand("configure", "Configure Huppy for your server")]
[RequireUserPermission(GuildPermission.Administrator)]
public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, bool? EnableNews = false, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? NewsRoom = null, SocketGuildChannel? GreetingRoom = null)
public async Task ConfigureHuppy(bool? UseGreet = null, string? GreetingMessage = null, IRole? DefaultRole = null, SocketGuildChannel? HuppyRoom = null, SocketGuildChannel? GreetingRoom = null)
{
var server = await _serverService.GetOrCreateAsync(Context.Guild.Id, Context.Guild.Name, Context.Guild.DefaultChannel.Id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,10 @@
<ProjectReference Include="..\HuppyService.Core\HuppyService.Core.csproj" />
</ItemGroup>

<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/HuppyService/HuppyService.Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@

app.UseHttpLogging();

app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client. To learn how to create a client, visit: https://go.microsoft.com/fwlink/?linkid=2086909");
app.MapGet("/", () => "Communication with gRPC endpoints must be made through a gRPC client.");

app.Run();
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ public override async Task<CommonResponse> Update(ServerModel request, ServerCal
};

await _serverRepository.UpdateAsync(server);
await _serverRepository.SaveChangesAsync();
return new CommonResponse() { IsSuccess = true };
}
}
Expand Down

0 comments on commit 9a7bdb3

Please sign in to comment.