# pylint: disable=W0612 import disnake from disnake.ext import commands import bots.config_discordbot as cfg from bots.menus.menu import Menu class CmdsCommands(commands.Cog): """Command List""" def __init__(self, bot: commands.Bot): self.bot = bot @commands.slash_command(name="cmds") async def ta(self, ctx: disnake.AppCmdInter): """Stocks Command List""" misctext = "```md\n[disc-fidelity]()\n" "[ins-last](ticker) \n```" opttext = ( "```md\n[opt-unu]()\n" "[opt-iv](ticker)\n" "[opt-vsurf](ticker) \n" "[opt-hist](ticker) \n" "[opt-oi](ticker) \n" "[opt-vol](ticker) \n" "[opt-overview](ticker) \n" "[opt-chain](ticker) \n```" ) tatext = ( "```md\n[ta-summary](ticker)\n" "[ta-view](ticker)\n" "[ta-recom](ticker)\n" "[ta-obv](ticker) \n" "[ta-fib](ticker) \n" "[ta-ad](ticker) \n" "[ta-cg](ticker) \n" "[ta-fisher](ticker) \n" "[ta-cci](ticker) \n" "[ta-ema](ticker) \n" "[ta-sma](ticker) \n" "[ta-wma](ticker) \n" "[ta-hma](ticker) \n" "[ta-zlma](ticker) \n" "[ta-aroon](ticker) \n" "[ta-adosc](ticker) \n" "[ta-macd](ticker) \n" "[ta-kc](ticker) \n" "[ta-adx](ticker) \n" "[ta-rsi](ticker) \n" "[ta-stoch](ticker) \n" "[ta-bbands](ticker) \n" "[ta-donchian](ticker) \n```" ) ddtext = ( "```md\n[dd-est](ticker)\n" "[dd-sec](ticker)\n" "[dd-analyst](ticker)\n" "[dd-supplier](ticker)\n" "[dd-customer](ticker)\n" "[dd-arktrades](ticker)\n" "[dd-pt](ticker) \n```" ) dpstext = ( "```md\n[dps.hsi]() \n" "[dps.shorted](NUM)\n" "[dps.psi](ticker)\n" "[dps.spos](ticker)\n" "[dps.dpotc](ticker)\n" "[dps.pos]() \n" "[dps.sidtc]() \n" "[dps.ftd](ticker) \n```" ) scrtext = ( "```md\n[scr.presets_default]()\n" "[scr.presets_custom]()\n" "[scr.historical](SIGNAL) \n" "[scr.overview](PRESET) \n" "[scr.technical](PRESET) \n" "[scr.valuation](PRESET) \n" "[scr.financial](PRESET) \n" "[scr.ownership](PRESET) \n" "[scr.performance](PRESET) \n```" ) govtext = ( "```md\n[gov-histcont](ticker)\n" "[gov-lobbying](ticker) \n" "[gov-toplobbying]() \n" "[gov-lastcontracts]() \n" "[gov-contracts](ticker) \n" "[gov-qtrcontracts]() \n" "[gov-lasttrades]() \n" "[gov-gtrades](ticker) \n" "[gov-topbuys]() \n" "[gov-topsells]() \n```" "\n` = Past Transaction Days`\n" "` = Past Transaction Months`" ) econtext = ( "```md\n[econ-softs]()\n" "[econ-meats]()\n" "[econ-energy]()\n" "[econ-metals]()\n" "[econ-grains]()\n" "[econ-futures]()\n" "[econ-usbonds]()\n" "[econ-glbonds]()\n" "[econ-indices]()\n" "[econ-overview]()\n" "[econ-feargreed]()\n" "[econ-currencies]()\n" "[econ-valuation]() \n" "[econ-performance]() \n```" ) options = [disnake.SelectOption(label="Home", value="0", emoji="🟢")] embeds = [ disnake.Embed( title="Stocks: Technical Analysis Command List", description=tatext, color=cfg.COLOR, ), disnake.Embed( description=( f"**Options Command List**\n{opttext}\n" f"**Dark Pool Shorts Command List**\n{dpstext}\n" f"**Due Diligence Command List**\n{ddtext}\n" ), color=cfg.COLOR, ), disnake.Embed( description=( f"**Screener Command List**\n{scrtext}\n" f"**Government Command List**\n{govtext}\n" ), color=cfg.COLOR, ), disnake.Embed( description=( f"**Economy Command List**\n{econtext}\n" f"**Other Command List**\n{misctext}\n" ), color=cfg.COLOR, ), disnake.Embed( title="No Manipulation Here", description="```diff\n- Nothing to SEC here..... Yet.\n```", color=cfg.COLOR, ), ] embeds[0].set_author( name=cfg.AUTHOR_NAME, url=cfg.AUTHOR_URL, icon_url=cfg.AUTHOR_ICON_URL, ) embeds[0].set_footer( text=cfg.AUTHOR_NAME, icon_url=cfg.AUTHOR_ICON_URL, ) embeds[0].set_footer(text=f"Page 1 of {len(embeds)}") await ctx.send(embed=embeds[0], view=Menu(embeds, options)) def setup(bot: commands.Bot): bot.add_cog(CmdsCommands(bot))