Skip to content

Commit

Permalink
1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SachsKaylee committed Mar 14, 2023
1 parent 44708e6 commit e5ed1e5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 13 deletions.
10 changes: 8 additions & 2 deletions SahneeBot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# CHANGELOG

## 1.0.3
## 1.1.1

Changelogs after a new update are now sent to only a few servers at a time instead of all at once (causing the Discord API to trigger a rate limit). This should reduce the flood of false error messages some servers got after a new update has been released.
- Fixed an internal issue with the database and servers missing a default channel (or the default channel being a voice channel)

Additionally, we are currently conducting a user survey about the Sahnee-Bot. We'd love for everyone to share their opinion, regardless of if you are a server admin, moderator or a normal user: https://click.sahnee.dev/UsEHTYOj - Thank you for your time! 🙂

## 1.1.0

Expand All @@ -12,6 +14,10 @@ Changelogs after a new update are now sent to only a few servers at a time inste

Additionally, we are currently conducting a user survey about the Sahnee-Bot. We'd love for everyone to share their opinion, regardless of if you are a server admin, moderator or a normal user: https://click.sahnee.dev/UsEHTYOj - Thank you for your time! 🙂

## 1.0.3

Changelogs after a new update are now sent to only a few servers at a time instead of all at once (causing the Discord API to trigger a rate limit). This should reduce the flood of false error messages some servers got after a new update has been released.

## 1.0.2

Fixed an internal error that occurred when the bot does not have permission to post a changelog after a new release. Instead of throwing an error, admins will now be notified about the bot missing permissions.
Expand Down
8 changes: 4 additions & 4 deletions SahneeBot/SahneeBotTaskContextFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ async Task ExecuteWithContextAsyncImpl()
{
// Report exception
_logger.LogError(EventIds.Context
, exception, "{Error} in {Name} {Type} on guild {Guild}"
, exception.GetType().Name, opts.Name, opts.Type, opts.RelatedGuildId);
, exception, "{Error} in {Name} {Type} on guild {Guild}: {Message}"
, exception.GetType().Name, opts.Name, opts.Type, opts.RelatedGuildId, exception.Message);

var ticketId = await _exceptionTask.Execute(ctx,
new SahneeBotReportExceptionTask.Args(opts.Type, opts.Name, opts.Debug
Expand All @@ -147,8 +147,8 @@ async Task ExecuteWithContextAsyncImpl()
{
// Report error
_logger.LogWarning(EventIds.Context
,"{Error} in {Name} {Type} on guild {Guild}"
, error.GetType().Name, opts.Name, opts.Type, opts.RelatedGuildId);
,"{Error} in {Name} {Type} on guild {Guild}: {Message}"
, error.GetType().Name, opts.Name, opts.Type, opts.RelatedGuildId, error.Message);
if (opts.ErrorReporter != null && reportError)
{
await opts.ErrorReporter(ctx, new ErrorReport(null, error), opts);
Expand Down
6 changes: 4 additions & 2 deletions SahneeBot/Tasks/SahneeBotPostChangelogsToGuildTask.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Extensions.Logging;
using Discord;
using Discord.WebSocket;
using Microsoft.Extensions.Logging;
using SahneeBot.Formatter;
using SahneeBotController;
using SahneeBotController.Tasks;
Expand Down Expand Up @@ -49,7 +51,7 @@ public override async Task<ISuccess<uint>> Execute(ITaskContext ctx, Args arg)
var channel = boundChannel.HasValue
? await guild.GetTextChannelAsync(boundChannel.Value)
: await guild.GetDefaultChannelAsync();
if (channel == null)
if (channel is null or SocketVoiceChannel) // TODO: Dirty fix, but for whatever reason these are text channels too
{
_logger.LogWarning("Could not find a channel to post the changelogs in {GuildId}", guildId);
return new Error<uint>("Could not find a channel to post the changelogs in.");
Expand Down
23 changes: 18 additions & 5 deletions docker-compose.development.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
version: "3.8"
version: '3.8'
services:
sahneebot_devdb:
image: postgres:14
ports:
- 5432:5432
db:
container_name: pg_container
image: postgres
restart: always
environment:
POSTGRES_USER: sahneepg
POSTGRES_PASSWORD: sahneepg
POSTGRES_DB: sahneebot
ports:
- "5432:5432"
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: info@sahnee.dev
PGADMIN_DEFAULT_PASSWORD: sahneepg
ports:
- "5050:80"

0 comments on commit e5ed1e5

Please sign in to comment.