Esempio n. 1
0
 private async Task MessageReceived(SocketMessage args)
 {
     if (!args.Author.IsBot)
     {
         if (args.Content[0] == Command)
         {
             Generics.Command command = new Generics.Command(args);
             await CommandHandler(command, this, CacheHandler.FindCurrency(((SocketGuildChannel)command.discord_Source.Channel).Guild.Id.ToString(), command.Source));
         }
         else
         {
             Generics.Message message = new Generics.Message(args);
             await MessageHandler(message, this, CacheHandler.FindCurrency(((SocketGuildChannel)message.discord_Source.Channel).Guild.Id.ToString(), message.Source));
         }
     }
 }
Esempio n. 2
0
 private async void CommandReceived(object e, OnChatCommandReceivedArgs args)
 {
     Generics.Command command = new Generics.Command(args.Command);
     await CommandHandler(command, this, CacheHandler.FindCurrency(command.channel.ChannelName, command.Source));
 }