Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move setting the client activity into its own service. #51

Open
github-actions bot opened this issue Mar 21, 2023 · 0 comments
Open

Move setting the client activity into its own service. #51

github-actions bot opened this issue Mar 21, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request todo Todo found in the code
Milestone

Comments

@github-actions
Copy link

https://api.github.com/Anheledir/Honeycomb/blob/74644b27c94c273c2f926019155b9a95f8dd712f/BaseBotService/Notifications/ActivityHandler.cs#L14

using BaseBotService.Messages;
using Discord.WebSocket;

namespace BaseBotService.Notifications;
public class ActivityHandler : INotificationHandler<ClientReadyNotification>
{
    private readonly DiscordSocketClient _client;

    public ActivityHandler(DiscordSocketClient client)
    {
        _client = client;
    }

    // TODO: Move this into its own service.
    public async Task Handle(ClientReadyNotification notification, CancellationToken cancellationToken)
    {
        await _client.SetActivityAsync(new Game("the world burn", ActivityType.Watching));
        await _client.SetStatusAsync(UserStatus.Online);
    }
}
@github-actions github-actions bot added the todo Todo found in the code label Mar 21, 2023
@Anheledir Anheledir changed the title Move this into its own service. Move setting the client activity into its own service. Mar 21, 2023
@Anheledir Anheledir added the enhancement New feature or request label Mar 21, 2023
@Anheledir Anheledir added this to the v0.7 milestone Mar 21, 2023
@Anheledir Anheledir modified the milestones: v0.7, v0.6 Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request todo Todo found in the code
Projects
Status: 🏗 In progress
Development

No branches or pull requests

1 participant