Updated plugins. AI plugin updated
This commit is contained in:
@@ -1,24 +1,25 @@
|
||||
"""
|
||||
This plugin provides a command to display the list of available commands and their descriptions.
|
||||
Plugin for providing a command to display the list of available commands and their descriptions.
|
||||
"""
|
||||
|
||||
# plugins/help.py
|
||||
|
||||
import logging
|
||||
import simplematrixbotlib as botlib
|
||||
|
||||
async def handle_command(room, message, bot, prefix, config):
|
||||
async def handle_command(room, message, bot, prefix, config):
|
||||
"""
|
||||
Function to handle the !help command.
|
||||
|
||||
Args:
|
||||
room (Room): The Matrix room where the command was invoked.
|
||||
message (RoomMessage): The message object containing the command.
|
||||
bot (MatrixBot): The Matrix bot instance.
|
||||
prefix (str): The command prefix.
|
||||
config (dict): The bot's configuration.
|
||||
|
||||
Returns:
|
||||
None
|
||||
"""
|
||||
match = botlib.MessageMatch(room, message, bot, prefix)
|
||||
match = botlib.MessageMatch(room, message, bot, prefix)
|
||||
if match.is_not_from_this_bot() and match.prefix() and match.command("help"):
|
||||
logging.info("Fetching command help documentation")
|
||||
commands_message = """
|
||||
@@ -33,11 +34,11 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
</details>
|
||||
|
||||
<details><summary>💻 <strong>!proxy</strong></summary>
|
||||
<p>Retrieves a tested/working random SOCKS5 proxy. Fetches a list of SOCKS5 proxies, tests their availability, and sends the first working proxy to the chat room.</p>
|
||||
<p>Retrieves a tested/working random SOCKS5 proxy. Fetches a list of SOCKS5 proxies, tests their availability, and sends the first working proxy to the chat room.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>📶 <strong>!isup [domain/ip]</strong></summary>
|
||||
<p>Checks if the specified domain or IP address is reachable. Checks if the specified domain or IP address is reachable by attempting to ping it. If DNS resolution is successful, it checks HTTP and HTTPS service availability by sending requests to the domain.</p>
|
||||
<p>Checks if the specified domain or IP address is reachable. Checks if the specified domain or IP address is reachable by attempting to ping it. If DNS resolution is successful, it checks HTTP and HTTPS service availability by sending requests to the domain.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>☯ <strong>!karma [user]</strong></summary>
|
||||
@@ -52,12 +53,16 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
<p>Decreases the karma points for the specified user by 1. Decreases the karma points for the specified user by 1 in the database and sends the updated points as a message to the chat room.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>📄 <strong>!funguy [prompt]</strong></summary>
|
||||
<p>An AI large language model designed to serve as a chatbot within a vibrant and diverse community chat room hosted on the Matrix platform. (Currently loaded model: <strong>TheBloke_Mistral-7B-Instruct-v0.2-GPTQ</strong>)</p>
|
||||
<details><summary>📸 <strong>!sd [prompt]</strong></summary>
|
||||
<p>Generates images using self-hosted Stable Diffusion. See available options using just '!sd'.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>🎝 <strong>!music [prompt]</strong></summary>
|
||||
<p>Your music expert! Try it out.</p>
|
||||
<details><summary>💡 <strong>!enable</strong></summary>
|
||||
<p>Enables a disabled command. Use '!enable plugin room' to enable a specific command.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>🚫 <strong>!disable</strong></summary>
|
||||
<p>Disables a command. Use '!disable plugin room' to disable a specific command.</p>
|
||||
</details>
|
||||
|
||||
<details><summary>🌟 <strong>Funguy Bot Credits</strong> 🌟</summary>
|
||||
@@ -66,7 +71,11 @@ async def handle_command(room, message, bot, prefix, config):
|
||||
</details>
|
||||
</p>
|
||||
</details>
|
||||
|
||||
<details><summary>📸 <strong>Funguy Bot AI Commands</strong> 🌟</summary>
|
||||
!tech, !music, !eth, !seo, !term, !eng, !intv, !js, !xls, !pron, !spk, !trv, !plag, !char, !adv, !story, !foot, !comic, !motiv, !music, !debate, !write, !script, !author, !crit, !rel, !poem, !rap, !speak, !phil, !math, !tutor, !design, !sec, !recruit, !coach, !etymo, !com, !magic, !counsel, !behavior, !fit, !mh, !realest, !log, !dental, !web, !health, !acc, !chef, !auto, !art, !fin, !invest, !tea, !interior, !florist, !selfhelp, !gnome, !aph, !adv, !advgame, !esc, !title, !stats, !prompt, !teach, !db, !diet, !psych, !domain, !tech, !review, !devrel, !acad, !arch, !insane, !manip, !logic, !review, !diy, !influencer, !philos, !socrat, !edu, !meditate, !writer, !smm, !eloc, !viz, !nav, !hypno, !hist, !astro, !critic, !comp, !journo, !curation, !pscoach, !makeup, !childcare, !writing, !art, !py, !syn, !shop, !dining, !telemed, !cook, !law, !fashion, !ml, !trans, !design, !it, !chess, !prompt, !dev, !math, !regex, !time, !dream, !coach, !r, !comm, !trans, !php, !emergency, !worksheet, !test, !game, !security, !create, !browse, !dev, !search, !startup, !guide, !langdet, !sales, !msg, !ceo, !diag, !coach, !therapy, !legal, !gen, !mgmt, !drunk, !hist, !rec, !write, !techtrans, !ai, !game, !proof, !spirit, !spirit, !chem, !friend, !py, !chat, !wiki, !kanji, !note, !litcrit, !enhance, !travel, !data, !gaming
|
||||
</details>
|
||||
"""
|
||||
|
||||
await bot.api.send_markdown_message(room.room_id, commands_message)
|
||||
await bot.api.send_markdown_message(room.room_id, commands_message)
|
||||
logging.info("Sent help documentation to the room")
|
||||
|
Reference in New Issue
Block a user