UPDATE THREAD: MOVING TO ANTI-RIJISTAN
10/2/2020, 10:19 am
Hoppin in the lab hopefully. Cash app :sackz20
- me n tha boy Blicky straight noshin the block, rep Terre Haute
i thought this girl was really cute whats her 9gag? wouldnt mind gettin deeper into her than her daddy issues til she cums and my dick gets squeezed out just like the eggs she purged this morning because of crippling self image issues
- me n tha boy Blicky straight noshin the block, rep Terre Haute
i thought this girl was really cute whats her 9gag? wouldnt mind gettin deeper into her than her daddy issues til she cums and my dick gets squeezed out just like the eggs she purged this morning because of crippling self image issues
Ghay Ping likes this post
Re: UPDATE THREAD: MOVING TO ANTI-RIJISTAN
10/2/2020, 10:21 am
WAIT!!!
IF YOU
IF YOU
s TAYA ON RIIRJIRI HRUDUDUDUUUUUUU I CAN GIVE HYOU FR E E EE DISCOUNT ON
RIJI MAAA X!!!!!!!!!!!
Ghay Ping likes this post
Re: UPDATE THREAD: MOVING TO ANTI-RIJISTAN
10/2/2020, 10:34 am
- Code:
import discord
from pybooru import Danbooru
from tenma_storage import DAN_API_KEY, DAN_API_USER, HELP_EMBED, SEAL_DAN_API_USER, SEAL_DAN_API_KEY, SCH_DAN_API_USER, SCH_DAN_API_KEY
import tenma_storage
badExts = ['mpg','mp4','wav','wmv','mkv','swf']
HELP_EMBED.add_field(name='`db [tags]*`',value="Fetch an image with the given tags from Danbooru\nOptions: `-s` - Begin a post stream of the given tags. Pass an integer as the first tag to set delay time between posts (defaults to 7 seconds)",inline=False)
HELP_EMBED.add_field(name="`stop`", value="Ends a running danbooru post stream",inline=False)
client = Danbooru(site_url='https://danbooru.donmai.us', username=DAN_API_USER, api_key=DAN_API_KEY)
clientSeals = Danbooru(site_url='https://danbooru.donmai.us', username=SEAL_DAN_API_USER, api_key=SEAL_DAN_API_KEY)
clientScheisse = Danbooru(site_url='https://danbooru.donmai.us', username=SCH_DAN_API_USER, api_key=SCH_DAN_API_KEY)
alreadySent = []
async def getDanImg(tags):
postList = client.post_list(tags=' '.join(tags),random=True)
if len(postList)<1:
return discord.Embed(description=f"Could not find posts tagged: {tags}")
index = 0
postUrl = postList[index]['large_file_url']
ext = postList[index]['file_ext']
while postUrl in alreadySent or ext in badExts:
index += 1
if index >= len(postList):
return discord.Embed(description=f"No more posts with these tags could be found")
postUrl = postList[index]['large_file_url']
ext = postList[index]['file_ext']
source = postList[index]['id']
embed = discord.Embed(description=f"[Source](https://danbooru.donmai.us/posts/{source})")
embed.set_image(url=postUrl)
#Create embed footer
footer = ""
for tag in tags:
footer += tag + ", "
footer = footer[:-2]
embed.set_footer(text=footer)
alreadySent.append(postUrl)
return embed
async def favoriteId(favUrl, user):
indexId = int(favUrl.find("posts/")) + 6
postid = int(favUrl[indexId:-1])
if user.id == tenma_storage.DAN_FAV_ID[0]:
client.favorite_add(postid)
elif user.id == tenma_storage.DAN_FAV_ID[1]:
clientSeals.favorite_add(postid)
elif user.id == tenma_storage.DAN_FAV_ID[2]:
clientScheisse.favorite_add(postid)
Ghay Ping likes this post
- Human
- Age : 16
Location : Swamp
Join date : 2020-09-05
Posts : 20
Re: UPDATE THREAD: MOVING TO ANTI-RIJISTAN
10/2/2020, 12:02 pm
Ghay Ping likes this post
Permissions in this forum:
You cannot reply to topics in this forum