Exemplo n.º 1
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);
 }
Exemplo n.º 2
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);
 }
Exemplo n.º 3
0
 public async Task ShowRepository()
 {
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _remoteRepoService.ShowRepositoryAsync(channel);
 }
Exemplo n.º 4
0
 public async Task ShowProfile(CommandContext ctx, MiunieUser m)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _profileService.ShowProfile(m, channel);
 }
 public async Task ShowRepository(CommandContext ctx)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _remoteRepoService.ShowRepositoryAsync(channel);
 }
Exemplo n.º 6
0
 public async Task ShowCzkStatus()
 {
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _currencyService.ShowCzkStatus(channel);
 }
Exemplo n.º 7
0
 public async Task ShowTimeForUser(MiunieUser user)
 {
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.OutputCurrentTimeForUserAsync(user, c);
 }
Exemplo n.º 8
0
 public async Task YesNoMaybeAsync(CommandContext ctx)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _miscService.YesNoMaybeAnswer(channel);
 }
Exemplo n.º 9
0
 public async Task RemoveMyPersonalData()
 {
     var u = _entityConvertor.ConvertUser(Context.User as SocketGuildUser);
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.RemoveUserData(u, c);
 }
Exemplo n.º 10
0
 public async Task SendRandomYesNoMaybeAnswer()
 {
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.SendRandomYesNoAnswerAsync(c);
 }
Exemplo n.º 11
0
 public async Task ShowCzkStatus(CommandContext ctx)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _currencyService.ShowCzkStatus(channel);
 }
Exemplo n.º 12
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);
 }