Advertisement
Guest User

pls help i will giv verified tokens

a guest
Aug 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.12 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net.Http;
  4.  
  5. namespace Hook
  6. {
  7.     class Program
  8.     {
  9.  
  10.         public static class Globals
  11.         {
  12.             public static String url = "Output.txt"; // Modifiable strings
  13.             public static String message = "test";
  14.             public static String nick = "Mr.Whebhook";
  15.             public static String av = "https://www.google.com/url?sa=i&source=images&cd=&ved=2ahUKEwiH-uDaoIzkAhUMzKQKHZYeB_0QjRx6BAgBEAQ&url=https%3A%2F%2Fwww.reddit.com%2Fr%2Fdiscordapp%2Fcomments%2F8n3hco%2Fmade_a_discord_staff_avatar_like_the_ones_that%2F&psig=AOvVaw3NvBK86Yq4Vvyp8U3bhh7j&ust=1566212050763053";
  16.         }
  17.         static void Main(string[] args)
  18.         {
  19.  
  20.             Console.WriteLine("Webhook url?");
  21.             Globals.url = Console.ReadLine();
  22.             Console.WriteLine("Nickname");
  23.             Globals.nick = Console.ReadLine();
  24.             Console.WriteLine("Avatar url?");
  25.             Globals.av = Console.ReadLine();
  26.             Console.WriteLine("type message to send");
  27.             Globals.message = Console.ReadLine();
  28.             try
  29.             {
  30.                 Webhook.ReportTokens();
  31.             }
  32.             catch { }
  33.            
  34.  
  35.  
  36.         }
  37.         public static class Webhook
  38.         {
  39.            
  40.             private static string _hookUrl = Globals.url;
  41.  
  42.  
  43.         public static void ReportTokens()
  44.         {
  45.                 HttpClient httpClient = new HttpClient();
  46.                 HttpClient client = httpClient;
  47.                 Dictionary<string, string> contents = new Dictionary<string, string>
  48.                 {
  49.                     { "content", Globals.message },
  50.                     { "username", Globals.nick },
  51.                     { "avatar_url", Globals.av }
  52.                 };
  53.  
  54.                 Console.WriteLine(Globals.message); Console.WriteLine("done"); Console.WriteLine("done");
  55.  
  56.  
  57.                 client.PostAsync(_hookUrl, new FormUrlEncodedContent(contents)).GetAwaiter().GetResult();
  58.                 Console.WriteLine("done");
  59.                 Console.ReadLine();
  60.  
  61.         }
  62.         }
  63.     }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement