2
0
mirror of synced 2025-02-13 08:56:30 +00:00
cs-codex-dist-tests/Tools/BiblioTech/LoggingRoleDriver.cs
2024-12-09 10:04:33 +01:00

33 lines
703 B
C#

using BiblioTech.Rewards;
using Discord;
using DiscordRewards;
using Logging;
using Newtonsoft.Json;
namespace BiblioTech
{
public class LoggingRoleDriver : IDiscordRoleDriver
{
private readonly ILog log;
public LoggingRoleDriver(ILog log)
{
this.log = log;
}
public async Task GiveAltruisticRole(IUser user)
{
await Task.CompletedTask;
log.Log($"Give altruistic role to {user.Id}");
}
public async Task GiveRewards(GiveRewardsCommand rewards)
{
await Task.CompletedTask;
log.Log(JsonConvert.SerializeObject(rewards, Formatting.None));
}
}
}