# pylint: disable=W0612 import disnake from disnake.ext import commands from bots import 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 cmds(self, ctx: disnake.AppCmdInter): """Stocks Command List""" siatext = ( "```md\n[sia metrics](ticker) \n" "[sia cps]() \n" "[sia cpic]() \n```" ) etftext = ( "```md\n[etfs disc-tops]() \n" "[etfs holdings by-etf](etf) \n" "[etfs holdings by-ticker](ticker) \n```" ) disctext = ( "```md\n[disc fidelity]()\n" "[disc ugs]() \n" "[disc tops]() \n```" ) misctext = ( "```md\n[futures]()\n" "[quote](ticker)\n" "[support]() *Mods Only\n" "[ins-last](ticker) \n" "[btc]() \n" "[eth]() \n" "[sol]() \n" "[candle](ticker) \n```" ) opttext = ( "```md\n[opt unu]()\n" "[opt info](ticker)\n" "[opt vsurf](ticker) \n" "[opt oi](ticker) \n" "[opt vol](ticker) \n" "[opt overview](ticker) \n" "[opt hist](ticker) \n" "[opt grhist](ticker) \n" "[opt chain](ticker) \n```" ) tatext = ( "```md\n[ta summary](ticker)\n" "[ta view](ticker)\n" "[ta recom](ticker)\n" "[ta fib](ticker) \n```" "```md\n[ta-vol obv](ticker) \n" "[ta-vol ad](ticker) \n" "[ta-mom cg](ticker) \n" "[ta-mom fisher](ticker) \n" "[ta-mom cci](ticker) \n" "[ta ma](ticker) \n" "[ta-trend aroon](ticker) \n" "[ta-vol adosc](ticker) \n" "[ta-mom macd](ticker) \n" "[ta-vlt kc](ticker) \n" "[ta-trend adx](ticker) \n" "[ta-mom rsi](ticker) \n" "[ta-mom stoch](ticker) \n" "[ta-vlt bbands](ticker) \n" "[ta-vlt donchian](ticker) \n```" "```md\nšŸ‘† šŸ‘†\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( title="", 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( title="", description=( f"**ETF Command List**\n{etftext}\n" f"**Sector and Industry Analysis Command List**\n{siatext}\n" f"**Stocks Discovery Command List**\n{disctext}\n" f"**Other Command List**\n{misctext}\n" ), color=cfg.COLOR, ), disnake.Embed( title="", description=(f"**Economy Command List**\n{econtext}\n"), color=cfg.COLOR, ), disnake.Embed( title="", description=( f"**Screener Command List**\n{scrtext}\n" f"**Government Command List**\n{govtext}\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))