MCPcopy Create free account
hub / github.com/RocketGod-git/shodanbot / __init__

Method __init__

main.py:81–86  ·  view source on GitHub ↗
(self, shodan_key)

Source from the content-addressed store, hash-verified

79
80class aclient(discord.Client):
81 def __init__(self, shodan_key) -> None:
82 super().__init__(intents=discord.Intents.default())
83 self.shodan = shodan.Shodan(shodan_key)
84 self.tree = discord.app_commands.CommandTree(self)
85 self.activity = discord.Activity(type=discord.ActivityType.watching, name="/shodan")
86 self.discord_message_limit = 2000
87
88 async def send_split_messages(self, interaction, message: str, require_response=True):
89 """Sends a message, and if it's too long for Discord, splits it."""

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected