Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #3
0
 public async Task ShowRepository()
 {
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _remoteRepoService.ShowRepositoryAsync(channel);
 }
Beispiel #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);
 }
Beispiel #6
0
 public async Task ShowCzkStatus()
 {
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _currencyService.ShowCzkStatus(channel);
 }
Beispiel #7
0
 public async Task ShowTimeForUser(MiunieUser user)
 {
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.OutputCurrentTimeForUserAsync(user, c);
 }
Beispiel #8
0
 public async Task YesNoMaybeAsync(CommandContext ctx)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _miscService.YesNoMaybeAnswer(channel);
 }
Beispiel #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);
 }
Beispiel #10
0
 public async Task SendRandomYesNoMaybeAnswer()
 {
     var c = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _service.SendRandomYesNoAnswerAsync(c);
 }
Beispiel #11
0
 public async Task ShowCzkStatus(CommandContext ctx)
 {
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _currencyService.ShowCzkStatus(channel);
 }
Beispiel #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);
 }