async def behe(ctx, *a): if (ctx.channel.name == "behemoth-magi-hub") or (ctx.channel.name == "bot_testing") or ( ctx.channel.name == "executive-room") or (ctx.channel.name == "general-testing"): i = 0 joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) inputWordArray = filteredInput.split() attributesArray = myUtilities.matchWeaponAttributes(inputWordArray) for key, content in attributesArray.items(): if (content): i += 1 if (i > 1): queryResults = myUtilities.fetchBehemothByTypeDB(attributesArray) else: queryResults = myUtilities.fetchBehemothDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.behemothEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.") else: await ctx.send( "Please use the search function in <#470713661447471104>")
async def behe(ctx, *a): memRole = ctx.author.roles memRoleName = list() for xyz in memRole: memRoleName.append(xyz.name) if (ctx.channel.name in channelWhiteList) or ("Moderators" in memRoleName) or (ctx.message.author.id == 241918719507431425): i = 0 joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) inputWordArray = filteredInput.split() attributesArray = myUtilities.matchWeaponAttributes(inputWordArray) for key, content in attributesArray.items(): if (content): i+=1 if (i > 1): queryResults = myUtilities.fetchBehemothByTypeDB(attributesArray) else: queryResults = myUtilities.fetchBehemothDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.behemothEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.") else: await ctx.send("Please use the search function in <#470713661447471104>")
async def magi(ctx, *a): joined = " ".join(a) filteredInput = myUtilities.filterInput(joined) queryResults = myUtilities.fetchMagiDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.magiEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Magi not found.")
async def armor(ctx, *a): joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) queryResults = myUtilities.fetchArmorDB(filteredInput) if (len(queryResults) == 4): embed = myUtilities.armorEmbed(queryResults) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.")
async def weapon(ctx, *a): joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) queryResults = myUtilities.fetchWeaponDB(filteredInput) if (len(queryResults) == 1): embed = myUtilities.weaponEmbed(queryResults) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.")
async def magi(ctx, *a): memRole = ctx.author.roles memRoleName = list() for xyz in memRole: memRoleName.append(xyz.name) if (ctx.channel.name in channelWhiteList) or ("Moderators" in memRoleName) or (ctx.message.author.id == 241918719507431425): joined = " ".join(a) filteredInput = myUtilities.filterInput(joined) queryResults = myUtilities.fetchMagiDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.magiEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Magi not found.") else: await ctx.send("Please use the search function in <#470713661447471104>")
async def wep(ctx, *a): memRole = ctx.author.roles memRoleName = list() for xyz in memRole: memRoleName.append(xyz.name) if (ctx.channel.name in channelWhiteList) or ("Moderators" in memRoleName) or (ctx.message.author.id == 241918719507431425): joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) queryResults = myUtilities.fetchWeaponDB(filteredInput) if (len(queryResults) == 1): embed = myUtilities.weaponEmbed(queryResults) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.") else: await ctx.send("Please use the search function in <#470713661447471104>")
async def magi(ctx, *a): if (ctx.channel.name == "behemoth-magi-hub") or (ctx.channel.name == "bot_testing") or ( ctx.channel.name == "executive-room") or (ctx.channel.name == "general-testing"): joined = " ".join(a) filteredInput = myUtilities.filterInput(joined) queryResults = myUtilities.fetchMagiDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.magiEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Magi not found.") else: await ctx.send( "Please use the search function in <#470713661447471104>")
async def armor(ctx, *a): if (ctx.channel.name == "behemoth-magi-hub") or (ctx.channel.name == "bot_testing") or ( ctx.channel.name == "executive-room") or (ctx.channel.name == "general-testing"): joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) queryResults = myUtilities.fetchArmorDB(filteredInput) if (len(queryResults) == 4): embed = myUtilities.armorEmbed(queryResults) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.") else: await ctx.send( "Please use the search function in <#470713661447471104>")
async def behemoth(ctx, *a): i = 0 joinedInput = " ".join(a) filteredInput = myUtilities.filterInput(joinedInput) inputWordArray = filteredInput.split() attributesArray = myUtilities.matchWeaponAttributes(inputWordArray) for key, content in attributesArray.items(): if (content): i+=1 if (i > 1): queryResults = myUtilities.fetchBehemothByTypeDB(attributesArray) else: queryResults = myUtilities.fetchBehemothDB(filteredInput) if (len(queryResults) > 0 and len(queryResults) <= 10): embed = myUtilities.behemothEmbedGenerator(queryResults, filteredInput) await ctx.send(embed=embed) else: await ctx.send("Behemoth not found.")