async def _price_add(ctx, *args): logging.debug("PRICE ADD") if len(args) == 0: await ctx.send(msg.missingParam("price add <price>")) logging.debug("PRICE ADD - FINISHED") return elif len(args) > 1: await ctx.send(msg.tooManyParam("price add <price>")) logging.debug("PRICE ADD - FINISHED") return else: #bullshit if args[0] == "69": #emoji = discord.utils.get(discord.emojis, name=':regional_indicator_n:') #if emoji: emoji_tuple = ("🇳", "🇮", "🇨", "🇪") for x in emoji_tuple: await ctx.message.add_reaction(x) #bullshit end tempstr = price.add(args, ctx.author.id) if tempstr == "success": await ctx.message.add_reaction("✅") else: await ctx.channel.send(tempstr) logging.debug("PRICE ADD - FINISHED") return
async def _user_deleteinfo(message): logging.debug("USER DELETEINFO") if message.invoked_subcommand is None: await message.send( msg.missingParam(callbot + "user deleteinfo <param>")) return
async def _user_addinfo(message): logging.debug("USER ADDINFO") #check if any subcommands are submitted if message.invoked_subcommand is None: #_user_addinfo: await message.send(msg.missingParam(callbot + "user addinfo <param>")) return
async def _user_addinfo_pirate(message, *args): logging.debug("USER ADDINFO PIRATE") #adds friendcode to the users data try: await message.channel.send(addinfo.pirate(message.author.id, args[0])) logging.debug("USER ADDINFO PIRATE - FINISHED") return except IndexError: await message.send(msg.missingParam("user addinfo pirate <true|false>") ) logging.debug("USER ADDINFO PIRATE - FINISHED") return
async def _user_addinfo_friendcode(message, *args): logging.debug("USER ADDINFO FRIENDCODE") #adds friendcode to the users data try: await message.channel.send( addinfo.friendcode(message.author.id, args[0])) logging.debug("USER ADDINFO FRIENDCODE - FINISHED") return except IndexError: await message.send(msg.missingParam("user addinfo friendcode <code>")) logging.debug("USER ADDINFO FRIENDCODE - FINISHED") return
async def _user_addinfo_fruit(message, *args): logging.debug("USER ADDINFO FRUIT") #adds fruit to users try: await message.channel.send( addinfo.fruit(message.author.id, str(args[0]))) logging.debug("USER ADDINFO FRUIT - FINISHED") return except IndexError: await message.send(msg.missingParam("user addinfo fruit <fruit>")) logging.debug("USER ADDINFO FRUIT - FINISHED") return
async def _list(message): if message.invoked_subcommand is None: await message.send(msg.missingParam(callbot + "list <option>")) return
async def _user(message): logging.debug("USER") if message.invoked_subcommand is None: print("wat") await message.send(msg.missingParam(callbot + "user <option>")) return