Skip to content

Instantly share code, notes, and snippets.

@IAmJSD
Last active January 2, 2018 08:16
Show Gist options
  • Save IAmJSD/693e8b74811f84eec32c7492f360f649 to your computer and use it in GitHub Desktop.
Save IAmJSD/693e8b74811f84eec32c7492f360f649 to your computer and use it in GitHub Desktop.
Your very own Ajit Pai.
userbot = False
# Defines if it is a userbot or not.
token = ""
# Insert your token here.
import discord, logging, random
# Imports go here.
logging.basicConfig(level=logging.INFO)
# Sets the logging level.
dclient = discord.Client()
# Sets the discord client.
@dclient.event
async def on_ready():
logging.info("Successfully signed into Discord.")
await dclient.change_presence(game=discord.Game(name="with myself (Porn only $10/month)"))
# Defines on_ready
responses = ["Don't worry guys, you can still gram your food `as long as you pay a small fee`. - https://ajit-pai.likes-gay.men/ky6ds.png", "Don't worry guys, you can take photos of your pets `as long as the social network is in your package`. - https://ajit-pai.likes-gay.men/qsuzw.png", "Don't worry guys, you can still pretend to be a school shooter `as long as the service is in your package you want to do it on`. - https://ajit-pai.likes-gay.men/ibwuh.jpg", "Don't worry guys, you can still join forums `that are on good terms with your ISP`. - https://ajit-pai.likes-gay.men/di8k7.png", "Don't worry guys, you can still watch outdated memes `for $0.99/month`. - https://ajit-pai.likes-gay.men/dtnbo.png", "Don't worry guys, you can still binge watch your favorite shows `as long as the service is ran by your ISP`. - https://ajit-pai.likes-gay.men/zir7h.png"]
# Sets a list of responses.
@dclient.event
async def on_message(message):
x = message.content.lower()
if "fcc" in x or "ajit pai" in x or "net neutrality" in x or dclient.user.mention in x:
try:
await dclient.send_message(message.channel, random.choice(responses))
except:
pass
# Defines on_message.
dclient.run(token, bot=not userbot)
# Starts the bot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment