updated after a while because local stuff
This commit is contained in:
@@ -2,6 +2,7 @@ import asyncio
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import os
|
||||
import praw
|
||||
from random import randint
|
||||
|
||||
class Porno(object):
|
||||
@@ -11,6 +12,12 @@ class Porno(object):
|
||||
self.bot = bot
|
||||
self.voice_states = {}
|
||||
self.fileIndex = {}
|
||||
self.r = praw.Reddit(
|
||||
user_agent='StroopwafelBot',
|
||||
client_secret='Z4K17T8TC26cNAgDSRxCkE9jYR4',
|
||||
client_id='aWeyKpzdHMtmJQ'
|
||||
)
|
||||
self.r.read_only = True
|
||||
def __check(self, ctx): #Todo: Is dit het porno kanaal?
|
||||
return True
|
||||
|
||||
@@ -29,8 +36,38 @@ class Porno(object):
|
||||
|
||||
@commands.command(pass_context=True)
|
||||
@asyncio.coroutine
|
||||
def ancilla(self, ctx):
|
||||
""" :-) """
|
||||
filepath = self.randomJpgFromFolder('ancilla');
|
||||
file = open(filepath, 'rb')
|
||||
yield from self.bot.upload(file, filename = filepath, content='Alsjeblieft!')
|
||||
def nsfw(self, ctx):
|
||||
""" random post uit een nsfw subreddit, ... """
|
||||
print(type(ctx.message.channel))
|
||||
try:
|
||||
if(not ctx.message.channel.is_nsfw()):
|
||||
yield from ctx.channel.send("Alleen toegestaan in een NSFW kanaal")
|
||||
return
|
||||
except:
|
||||
print("borf")
|
||||
randnsfw = self.r.subreddit('randnsfw')
|
||||
post = randnsfw.random()
|
||||
try:
|
||||
yield from ctx.message.delete()
|
||||
except:
|
||||
print("No permission to delete message")
|
||||
yield from ctx.channel.send(ctx.author.mention + " Uit r/"+ randnsfw.display_name +": " + post.url)
|
||||
|
||||
@commands.command(pass_context=True)
|
||||
@asyncio.coroutine
|
||||
def gay(self, ctx):
|
||||
""" Gay & NSFW. Wat wilt een mens nog meer? """
|
||||
print(type(ctx.message.channel))
|
||||
try:
|
||||
if(not ctx.message.channel.is_nsfw()):
|
||||
yield from ctx.channel.send("Alleen toegestaan in een NSFW kanaal")
|
||||
return
|
||||
except:
|
||||
print("borf")
|
||||
gaynsfw = self.r.subreddit('autofellatio+Balls+baramanga+BHMGoneWild+bigbrotherbros+Bisexy+blackballed+blackcock+blackmale+Boners+BonersInPublic+broslikeus+Bulge+Bulges+CelebrityPenis+chesthairporn+ChubbySilverDaddies+circumcisions+cock+CockOutline+CubsGoneWild+CumCannonAddicts+CuteGuyButts+daddybears+DickSlips+FMN+foreskin+gayasshole+gaybears+gaybrosgonemild+GaybrosGoneWild+GayChubs+gaycumsluts+GayDaddiesPics+GayGifs+gayholdthemoan+gayincest+GayKink+gaymersgonewild+GayMuscleWorship+gaynsfw+gayotters+gayporn+gaypornhunters+gaypornornotgayporn+gaypornwithplot+GaySnapchatImages+gaystoriesgonewild+gaystrugglefuck+gayvideos+GayWatersports+gfur+gingerdudes+grower+guyskissing+HeSquats+Homosexual+hotguyswithtattoos+insanelyhairymen+jockstraps+jockwatch+ladybonersgw+leathermen+LegionairresGoneWild+LGBTGoneWild+LGBTreesGoneWild+lovegaymale+MaleArmpits+malemodels+malepornstars+malespandex+MaleUnderwear+manass+mangonewild+manlove+ManSex+MassiveCock+MensHighJinx+menslegs+MrBlowJob+nocategory+nopullingout+NSFW_GAY+NSFW_gay_porn+OhCumOn+penis+POCLadyBoners+PublicBoys+RedditorCum+SceneBoys+selfservice+Singlets+softies+speedos+TotallyStraight+TwinkLove+twinks+UniformedMen+VintageGayPics')
|
||||
post = gaynsfw.random()
|
||||
try:
|
||||
yield from ctx.message.delete()
|
||||
except:
|
||||
print("No permission to delete message")
|
||||
yield from ctx.channel.send(ctx.author.mention + " " + post.url)
|
||||
|
||||
Reference in New Issue
Block a user