Alyssa

Weeaboo Gulags

Jul 7th, 2016
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.43 KB | None | 0 0
  1. import discord
  2. import random
  3. import requests
  4. import time
  5.  
  6. auth = "AUTH_TOKEN"
  7. guild_id = "178972710754320386"
  8.  
  9. client = discord.Discord(auth, bot=True, user_agent = "Prankster Gangster by Tron")
  10.  
  11. session = client.session
  12.  
  13. target = client.get_guild(guild_id)
  14.  
  15. print("Prankster gangsting " + target.name)
  16.  
  17. channels = target.get_channels()
  18.  
  19. print("Channels to prankster gangst: ")
  20.  
  21. for channel in channels:
  22.   print(channel.name + " (" + channel.type + ")")
  23.   if channel.type == "text":
  24.     if str(channel.topic) != "None":
  25.       print("   " + str(channel.topic))
  26.     else:
  27.       print("   ")
  28.  
  29. print("Weeaboo izing!")
  30.  
  31. for channel in channels:
  32.   rnum = str(random.randint(0,5))
  33.   on = channel.name
  34.   if channel.type == "text":
  35.     ot = channel.topic
  36.     if str(channel.topic) == "None":
  37.       ot = ""
  38.     print(on + " is now known as weeaboo-gulag-" + on[0:1])
  39.     print("It's new topic is \"A channel for weeaboos to watch anime together in and " + ot[0:2] + ot[len(ot)-1:len(ot)] + ",\" previously being " + ot)
  40.     data = {"name": "weeaboo-gulag-" + rnum,
  41.       "topic": "A channel for weeaboos to watch anime together!"
  42.       }
  43.     print(session.put(discord.base + "/channels/" + channel.id,data=data).text)
  44.   else:
  45.     print(on + " is now known as weeaboo-gulag-" + on[len(on)-1:len(on)])
  46.     data = {"name": "weeaboo-gulag-" + rnum}
  47.     print(session.put(discord.base + "/channels/" + channel.id,data=data).text)
Advertisement
Add Comment
Please, Sign In to add comment