Advertisement
VynxDev

Untitled

Oct 2nd, 2021
1,527
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Shared _lavaNode As LavaNode = serviceManager.provider.GetRequiredService(Of LavaNode)
  2.     Private Shared _client As DiscordSocketClient = serviceManager.provider.GetRequiredService(Of DiscordSocketClient)
  3.     Private Shared _cmdService As CommandService = serviceManager.provider.GetRequiredService(Of CommandService)
  4.     Private Shared _images As Images = serviceManager.provider.GetRequiredService(Of Images)
  5.     Private config As configManager
  6.  
  7.  
  8.     Public Function loadEvents() As Task
  9.         config = configManager.Load
  10.         AddHandler _client.Log, AddressOf logAsync
  11.         AddHandler _cmdService.Log, AddressOf logAsync
  12.         AddHandler _client.Ready, AddressOf onReady
  13.         AddHandler _client.MessageReceived, AddressOf messageRecieved
  14.         AddHandler _lavaNode.OnTrackEnded, AddressOf audioManager.trackEnded
  15.         AddHandler _lavaNode.OnTrackStarted, AddressOf audioManager.trackStart
  16.         AddHandler _client.UserJoined, AddressOf onUserJoined
  17.  
  18.         Return Task.CompletedTask
  19.     End Function
Advertisement
RAW Paste Data Copied
Advertisement