Ejemplo n.º 1
0
 public async Task ShowProfileAsync(CommandContext ctx, MiunieUser m = null)
 {
     if (m is null)
     {
         m = _entityConvertor.ConvertUser(ctx.Member);
     }
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _profileService.ShowProfileAsync(m, channel);
 }
Ejemplo n.º 2
0
 public async Task ShowProfileAsync(MiunieUser user = null)
 {
     if (user is null)
     {
         user = _entityConvertor.ConvertUser(Context.User as SocketGuildUser);
     }
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _profileService.ShowProfileAsync(user, channel);
 }
Ejemplo n.º 3
0
 public async Task ShowTimeForUserComparedToCurrentUser(DateTime requestTime, string verb, MiunieUser user)
 {
     var u = _entityConvertor.ConvertUser(Context.User as SocketGuildUser);
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.OutputCurrentTimeComparedToInputForUserAsync(u, requestTime, verb, user, c);
 }
Ejemplo n.º 4
0
 public async Task GetMyPersonalData()
 {
     var u = _entityConvertor.ConvertUser(Context.User as SocketGuildUser);
     await _service.OutputUserJsonDataAsync(u);
 }
Ejemplo n.º 5
0
 public async Task ListDirectoryAsync(CommandContext ctx)
 {
     var chan = _entityConvertor.ConvertChannel(ctx.Channel);
     var user = _entityConvertor.ConvertUser((DiscordMember)ctx.User);
     await _directoryService.ListDirectoryAsync(chan, user);
 }