1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-05-11 16:33:16 +03:00

Bring back listening statuses

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2023-06-30 14:51:02 +05:00
parent b46c366e5e
commit b1855c5257
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
3 changed files with 40 additions and 15 deletions

View file

@ -8,7 +8,6 @@ using Microsoft.Extensions.Logging;
using Remora.Commands.Extensions;
using Remora.Discord.API.Abstractions.Gateway.Commands;
using Remora.Discord.API.Abstractions.Objects;
using Remora.Discord.API.Gateway.Commands;
using Remora.Discord.API.Objects;
using Remora.Discord.Caching.Extensions;
using Remora.Discord.Caching.Services;
@ -54,14 +53,9 @@ public class Boyfriend {
).ConfigureServices(
(_, services) => {
services.Configure<DiscordGatewayClientOptions>(
options => {
options.Intents |= GatewayIntents.MessageContents
| GatewayIntents.GuildMembers
| GatewayIntents.GuildScheduledEvents;
options.Presence = new UpdatePresence(
UserStatus.Online, false, DateTimeOffset.UtcNow,
new[] { new Activity("with Remora.Discord", ActivityType.Game) });
});
options => options.Intents |= GatewayIntents.MessageContents
| GatewayIntents.GuildMembers
| GatewayIntents.GuildScheduledEvents);
services.Configure<CacheSettings>(
settings => {
settings.SetDefaultAbsoluteExpiration(TimeSpan.FromHours(1));