Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import discord
- import random
- import requests
- import time
- auth = "AUTH_TOKEN"
- guild_id = "178972710754320386"
- client = discord.Discord(auth, bot=True, user_agent = "Prankster Gangster by Tron")
- session = client.session
- target = client.get_guild(guild_id)
- print("Prankster gangsting " + target.name)
- channels = target.get_channels()
- print("Channels to prankster gangst: ")
- for channel in channels:
- print(channel.name + " (" + channel.type + ")")
- if channel.type == "text":
- if str(channel.topic) != "None":
- print(" " + str(channel.topic))
- else:
- print(" ")
- print("Weeaboo izing!")
- for channel in channels:
- rnum = str(random.randint(0,5))
- on = channel.name
- if channel.type == "text":
- ot = channel.topic
- if str(channel.topic) == "None":
- ot = ""
- print(on + " is now known as weeaboo-gulag-" + on[0:1])
- 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)
- data = {"name": "weeaboo-gulag-" + rnum,
- "topic": "A channel for weeaboos to watch anime together!"
- }
- print(session.put(discord.base + "/channels/" + channel.id,data=data).text)
- else:
- print(on + " is now known as weeaboo-gulag-" + on[len(on)-1:len(on)])
- data = {"name": "weeaboo-gulag-" + rnum}
- print(session.put(discord.base + "/channels/" + channel.id,data=data).text)
Advertisement
Add Comment
Please, Sign In to add comment