Download popcat6/4/2023 ![]() ![]() You use pop.country(name="canada", property="currency.propertyname").įor example: pop.country(name="canada", property="currency.symbol"). You may have noticed that there is a sub object within the main one, you may ask "How do i get data from a property inside the sub object?" here's how: If you want to get data from a specific property (for example domain), you need to replace pop.country(name="canada") with pop.country(name="canada", property="domain"). country ( name = "canada" ) print ( res ) run ( "discord bot token" ) Country command, object input example from popcat_wrapper import popcat_wrapper as pop color = "ffcc99" res = await pop. avatar_url_as ( size = 128 ) image = await pop. ![]() Member = None ): if member = None : member = ctx. command () async def drake ( ctx, member : discord. run ( "discord bot token" ) Ad command, image input example: import discord from discord.ext import commands from popcat_wrapper import popcat_wrapper as pop bot = commands. command () async def drake ( ctx ): text = "String" text2 = "String 2" image = await pop. ![]() run ( "discord bot token" ) Drake meme command, more than one text input example: import discord from discord.ext import commands from popcat_wrapper import popcat_wrapper as pop bot = commands. command () async def pikachu ( ctx ): text = "String" image = await pop. run ( "discord bot token" ) Pikachu command, one input example: import discord from discord.ext import commands from popcat_wrapper import popcat_wrapper as pop bot = commands. command () async def randomfacts ( ctx ): res = await pop. ![]() Join our server if you want to have fun or need any help! Installation pip install popcat-wrapperĮxamples Randomfacts command, no input example: import discord from discord.ext import commands from popcat_wrapper import popcat_wrapper as pop bot = commands. ![]()
0 Comments
Leave a Reply. |