async def changemymind_command(self, ctx, *,text:str): url = f"https://nekobot.xyz/api/imagegen?type=changemymind&text={text}" req = requests.get(url) req_json = req.json() if req_json["status"]!= 200: changeMyMindEmbed = discord.Embed(title="Hata",description ="API bağlantı hatası.",colour = 0xd92929) await ctx.send(embed=changeMyMindEmbed) logger.error("Fun | ChangeMyMind | Error: API bağlantısı hatası.") return changeMyMindEmbed_2 = discord.Embed(color=0x36393F) changeMyMindEmbed_2.set_footer(text=f"Tarafından: {ctx.author}",icon_url=ctx.author.avatar_url) changeMyMindEmbed_2.set_image(url = req_json["message"]) await ctx.send(embed=changeMyMindEmbed_2) logger.info(f"Fun | ChangeMyMind | Tarafından : {ctx.author}")
async def deepfry_command(self, ctx,member : discord.Member = None): member = member or ctx.author url = f"https://nekobot.xyz/api/imagegen?type=deepfry&image={member.avatar_url}" req = requests.get(url) req_json = req.json() if req_json["status"]!= 200: deepfryEmbed = discord.Embed(title="Hata",description ="API bağlantı hatası.",colour = 0xd92929) await ctx.send(embed=deepfryEmbed) logger.error("Fun | Deepfry | Error: API bağlantısı hatası.") return deepfryEmbed_2 = discord.Embed(color=0x36393F) deepfryEmbed_2.set_footer(text=f"Tarafından: {ctx.author}",icon_url=ctx.author.avatar_url) deepfryEmbed_2.set_image(url = req_json["message"]) await ctx.send(embed=deepfryEmbed_2) logger.info(f"Fun | Deepfry | Tarafından : {ctx.author}")
async def captcha_command(self, ctx,text:str,member : discord.Member = None): member = member or ctx.author text = text.replace('.',' ') url = f"https://nekobot.xyz/api/imagegen?type=captcha&url={member.avatar_url}&username={text}" req = requests.get(url) req_json = req.json() if req_json["status"]!= 200: captchaEmbed = discord.Embed(title="Hata",description ="API bağlantı hatası.",colour = 0xd92929) await ctx.send(embed=captchaEmbed) logger.error("Fun | Captcha | Error: API bağlantısı hatası.") return captchaEmbed_2 = discord.Embed(color=0x36393F) captchaEmbed_2.set_footer(text=f"Tarafından: {ctx.author}",icon_url=ctx.author.avatar_url) captchaEmbed_2.set_image(url = req_json["message"]) await ctx.send(embed=captchaEmbed_2) logger.info(f"Fun | Captcha | Tarafından : {ctx.author}")