You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add AzzyBot Maintenance Database Table (#249)
* Move log statement for update checking
* Create new Database Entity and actions
* Add conditional debug / release environment specification
* Ensure the AzzyBot table is created at startup
* Add the table via migrations
* Use it
* Align file logging with console logging and update changelog
* Fix the check if the instance is really offline (#250)
* Fix the check if the instance is really offline
* Update CHANGELOG.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sella-GH <147769367+Sella-GH@users.noreply.github.com>
* Update again
* Update src/AzzyBot.Bot/Commands/AzuraCastCommands.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sella-GH <147769367+Sella-GH@users.noreply.github.com>
* More spelling
---------
Signed-off-by: Sella-GH <147769367+Sella-GH@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Change execution time of automatic checks to include a buffer
* Update DSP
* Update version
---------
Signed-off-by: Sella-GH <147769367+Sella-GH@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
[Command("export-playlists"),Description("Export all playlists from the selected AzuraCast station into a zip file."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
55
+
[Command("export-playlists"),Description("Export all playlists from the selected AzuraCast station into a zip file."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
56
56
publicasyncValueTaskExportPlaylistsAsync
57
57
(
58
58
SlashCommandContextcontext,
@@ -143,7 +143,7 @@ public async ValueTask ExportPlaylistsAsync
143
143
FileOperations.DeleteFiles(filePaths);
144
144
}
145
145
146
-
[Command("force-api-permission-check"),Description("Force the bot to check if the entered api key has access to all required permissions."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
146
+
[Command("force-api-permission-check"),Description("Force the bot to check if the entered api key has access to all required permissions."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
147
147
publicasyncValueTaskForceApiPermissionCheckAsync
148
148
(
149
149
SlashCommandContextcontext,
@@ -183,7 +183,7 @@ public async ValueTask ForceApiPermissionCheckAsync
183
183
awaitcontext.EditResponseAsync("I initiated the permission check.\nThere won't be another message if your permissions are set correctly.");
184
184
}
185
185
186
-
[Command("force-cache-refresh"),Description("Force the bot to refresh it's local song cache for a specific station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
186
+
[Command("force-cache-refresh"),Description("Force the bot to refresh its local song cache for a specific station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
187
187
publicasyncValueTaskForceCacheRefreshAsync
188
188
(
189
189
SlashCommandContextcontext,
@@ -246,7 +246,7 @@ public async ValueTask ForceOnlineCheckAsync(SlashCommandContext context)
[Command("force-update-check"),Description("Force the bot to search for AzuraCast Updates."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup])]
249
+
[Command("force-update-check"),Description("Force the bot to search for AzuraCast Updates."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
[Command("get-system-logs"),Description("Get the system logs of the AzuraCast instance."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup])]
269
+
[Command("get-system-logs"),Description("Get the system logs of the AzuraCast instance."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
270
270
publicasyncValueTaskGetSystemLogsAsync
271
271
(
272
272
SlashCommandContextcontext,
@@ -338,7 +338,7 @@ public async ValueTask GetHardwareStatsAsync(SlashCommandContext context)
338
338
awaitcontext.EditResponseAsync(embed);
339
339
}
340
340
341
-
[Command("start-station"),Description("Start the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
341
+
[Command("start-station"),Description("Start the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
342
342
publicasyncValueTaskStartStationAsync
343
343
(
344
344
SlashCommandContextcontext,
@@ -382,7 +382,7 @@ public async ValueTask StartStationAsync
382
382
awaitcontext.FollowupAsync($"I started the station **{azuraStation.Name}**.");
383
383
}
384
384
385
-
[Command("stop-station"),Description("Stop the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
385
+
[Command("stop-station"),Description("Stop the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
386
386
publicasyncValueTaskStopStationAsync
387
387
(
388
388
SlashCommandContextcontext,
@@ -447,7 +447,7 @@ public async ValueTask StopStationAsync
447
447
}
448
448
}
449
449
450
-
[Command("toggle-song-requests"),Description("Enable or disable song requests for the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup])]
450
+
[Command("toggle-song-requests"),Description("Enable or disable song requests for the selected station."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.StationAdminGroup,AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
451
451
publicasyncValueTaskToggleSongRequestsAsync
452
452
(
453
453
SlashCommandContextcontext,
@@ -492,7 +492,7 @@ public async ValueTask ToggleSongRequestsAsync
492
492
awaitcontext.EditResponseAsync($"I {Misc.GetReadableBool(stationConfig.EnableRequests,ReadableBool.EnabledDisabled,true)} song requests for station **{stationConfig.Name}**.");
493
493
}
494
494
495
-
[Command("update-instance"),Description("Update the AzuraCast instance to the latest version."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup])]
495
+
[Command("update-instance"),Description("Update the AzuraCast instance to the latest version."),AzuraCastDiscordPermCheck([AzuraCastDiscordPerm.InstanceAdminGroup]),AzuraCastOnlineCheck]
0 commit comments