| 79 | |
| 80 | class 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.""" |