Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 149 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         public Bot(TinyMessengerHub messenger)
  2.         {
  3.             Messenger = messenger;
  4.  
  5.             modules = new List<IKcBotModule>
  6.             {
  7.                 new KcMaintModule(messenger),
  8.                 new InfectionModule(messenger)
  9.             };
  10.  
  11.             Discord = new DiscordClient(new DiscordConfiguration
  12.             {
  13.                 Token = BotToken,
  14.                 TokenType = TokenType.Bot,
  15.                 AutoReconnect = true,
  16.                 UseInternalLogHandler = true,
  17. #if DEBUG
  18.                 LogLevel = LogLevel.Debug
  19. #else
  20.                 LogLevel = LogLevel.Warning
  21. #endif
  22.             });
  23.             Discord.Ready += async e => await Discord.UpdateStatusAsync(new DiscordActivity(DiscordStatus, ActivityType.Playing));
  24.  
  25.             commands = Discord.UseCommandsNext(new CommandsNextConfiguration
  26.             {
  27.                 StringPrefixes = StringPrefixes,
  28.                 CaseSensitive = false,
  29.             });
  30.             commands.RegisterCommands<Commands>();
  31.            
  32.  
  33.             interactivity = Discord.UseInteractivity(new InteractivityConfiguration
  34.             {
  35.                 PaginationBehaviour = PaginationBehaviour.Ignore,
  36.                 Timeout = TimeSpan.FromMinutes(2)
  37.             });
  38.  
  39.  
  40.             Discord.ClientErrored += LogClientErrored;
  41.             Discord.SocketClosed += LogSocketClosed;
  42.             Discord.Heartbeated += RecordHeartbeat;
  43.             Discord.MessageCreated += HandleMessageCreated;
  44.  
  45.             messenger.Subscribe<ReportStatusMessage>(ReportStatus);
  46.             messenger.Subscribe<SendToChannelMessage>(async m => await HandleSendToChannelAsync(m));
  47.  
  48.             LastHeartbeat = DateTime.Now;
  49.  
  50.             Task.Run(HeartbeatCheck);
  51.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top