Advertisement
agentsix1

Untitled

Aug 8th, 2018
38,863
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.43 KB | None | 0 0
  1.     Private WithEvents client As DiscordSocketClient
  2.     Async Sub Start()
  3.         client = New DiscordSocketClient(New DiscordSocketConfig())
  4.         Dim token = "replace with real"
  5.         Await client.LoginAsync(TokenType.Bot, token)
  6.         Await client.StartAsync()
  7.         Await Task.Delay(-1)
  8.     End Sub
  9.  
  10.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  11.         Start()
  12.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement