mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Fixed .logserver - should no longer throw an exception if you had no logsettings previously
This commit is contained in:
@@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.com/en/1.0.0/) except date format. a-c-f-r-o
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed images not automatically reloading on startup if the keys don't exist
|
||||||
|
- Fixed `.logserver` - it should no longer throw an exception if you had no logsettings previously
|
||||||
|
|
||||||
## [3.0.4] - 16.09.2021
|
## [3.0.4] - 16.09.2021
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
@@ -17,7 +23,6 @@ Experimental changelog. Mostly based on [keepachangelog](https://keepachangelog.
|
|||||||
- Timer should no longer increase on some repeaters
|
- Timer should no longer increase on some repeaters
|
||||||
- Repeaters should no longer have periods when they're missing from the list
|
- Repeaters should no longer have periods when they're missing from the list
|
||||||
- Fixed several commands which used error color for success confirmation messages
|
- Fixed several commands which used error color for success confirmation messages
|
||||||
- Fixed images not automatically reloading on startup if the keys don't exist
|
|
||||||
|
|
||||||
## [3.0.3] - 15.09.2021
|
## [3.0.3] - 15.09.2021
|
||||||
|
|
||||||
|
@@ -121,6 +121,15 @@ namespace NadekoBot.Db
|
|||||||
.Where(x => x.GuildId == guildId)
|
.Where(x => x.GuildId == guildId)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
|
|
||||||
|
if (logSetting is null)
|
||||||
|
{
|
||||||
|
ctx.LogSettings.Add(logSetting = new ()
|
||||||
|
{
|
||||||
|
GuildId = guildId
|
||||||
|
});
|
||||||
|
ctx.SaveChanges();
|
||||||
|
}
|
||||||
|
|
||||||
return logSetting;
|
return logSetting;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user