Help update
This commit is contained in:
190
README.md
190
README.md
@@ -42,6 +42,7 @@ Create/Edit `.env` file in the root directory of the bot and add the following v
|
||||
MATRIX_URL="https://matrix.org" (or another homeserver)
|
||||
MATRIX_USER=""
|
||||
MATRIX_PASS=""
|
||||
OPENWEATHER_API_KEY="" # Optional: For weather plugin
|
||||
```
|
||||
|
||||
4. Create systemd.service
|
||||
@@ -95,57 +96,170 @@ For a complete list of available commands and their descriptions, use the `!comm
|
||||
|
||||
# 🍄 Funguy Bot Commands 🍄
|
||||
|
||||
🃏 **!fortune**
|
||||
Returns a random fortune message.
|
||||
Executes the `/usr/games/fortune` utility and sends the output as a message to the chat room.
|
||||
|
||||
⏰ **!date**
|
||||
Displays the current date and time.
|
||||
Fetches the current date and time using Python's `datetime` module and sends it in a formatted message to the chat room.
|
||||
## Plugin Documentation
|
||||
|
||||
💻 **!proxy**
|
||||
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.
|
||||
### Core Commands
|
||||
|
||||
📶 **!isup <domain/ip>**
|
||||
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.
|
||||
**🍄 !help**
|
||||
Displays comprehensive help documentation for all available commands with usage examples.
|
||||
|
||||
☯ **!karma <user>**
|
||||
Retrieves the karma points for the specified user.
|
||||
Retrieves the karma points for the specified user from a database and sends them as a message to the chat room.
|
||||
**🔌 !plugins**
|
||||
Lists all loaded plugins along with their descriptions.
|
||||
|
||||
⇧ **!karma user up**
|
||||
Increases the karma points for the specified user by 1.
|
||||
Increases the karma points for the specified user by 1 in the database and sends the updated points as a message to the chat room.
|
||||
**⏰ !date**
|
||||
Displays the current date and time with proper ordinal formatting.
|
||||
|
||||
⇩ **!karma user down**
|
||||
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.
|
||||
**🃏 !fortune**
|
||||
Returns a random fortune message using the fortune command.
|
||||
|
||||
📄 **!trigger [prompt]**
|
||||
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: **TheBloke_Mistral-7B-Instruct-v0.2-GPTQ**
|
||||
### Utility Commands
|
||||
|
||||
Triggers: !tech, !music, !eth, !seo, !eng, !intv, !pron, !spk, !trv, !plag, !char, !adv, !story, !foot, !comic, !motiv, !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, !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
|
||||
**💻 !proxy**
|
||||
Retrieves and tests random SOCKS5 proxies from public sources, showing latency and caching working proxies.
|
||||
|
||||
🎝 **!music [prompt]**
|
||||
Your music expert! Try it out.
|
||||
**📶 !isup [domain/ip]**
|
||||
Checks if a website or server is reachable, including DNS resolution and HTTP/HTTPS service checks.
|
||||
|
||||
🌧️ **!weather New York**
|
||||
Get Weather information
|
||||
**☯ !karma [user] [up/down]**
|
||||
Manages karma points for users. View karma with `!karma user`, increase with `!karma user up`, decrease with `!karma user down`.
|
||||
|
||||
🃏 **!sd <prompt>**
|
||||
Stable Diffusion Generator
|
||||
**🌧️ !weather [location]**
|
||||
Fetches current weather information for any location using OpenWeatherMap API.
|
||||
*Requires OPENWEATHER_API_KEY environment variable*
|
||||
|
||||
📄 **!ud <term>**
|
||||
Get Urban Dictionary Definition
|
||||
**📖 !ud [term] [index]**
|
||||
Fetches definitions from Urban Dictionary. Use without arguments for random definition, or specify term and optional index.
|
||||
|
||||
# 🌟 Funguy Bot Credits 🌟
|
||||
### AI & Generation Commands
|
||||
|
||||
🧙♂️ Creator & Developer:
|
||||
- Eggzy Gallahad is the author of 🍄Funguy Bot🍄.
|
||||
**🤖 AI Commands (!tech, !music, !eth, etc.)**
|
||||
Multiple AI model commands that interface with local AI API. Each command uses specialized prompts for different domains:
|
||||
- `!tech` - Technology assistance
|
||||
- `!music` - Music knowledge and recommendations
|
||||
- `!weather` - Weather information
|
||||
- And 100+ other specialized AI commands
|
||||
|
||||
# Join our Matrix Room:
|
||||
**📸 !sd [prompt] [options]**
|
||||
Generates images using self-hosted Stable Diffusion with customizable parameters:
|
||||
- `--steps` - Number of generation steps (default: 4)
|
||||
- `--cfg` - CFG scale (default: 2)
|
||||
- `--h` - Image height (default: 512)
|
||||
- `--w` - Image width (default: 512)
|
||||
- `--neg` - Negative prompt
|
||||
- `--sampler` - Sampler name (default: DPM++ SDE)
|
||||
|
||||
[Self-hosting | Security | Sysadmin | Homelab | Programming](https://chat.mozilla.org/#/room/#selfhosting:mozilla.org)
|
||||
**📄 !text [prompt] [options]**
|
||||
Generates text using Ollama's Mistral 7B Instruct model:
|
||||
- `--max_tokens` - Maximum tokens to generate (default: 512)
|
||||
- `--temperature` - Sampling temperature (default: 0.7)
|
||||
|
||||
### Media & Search Commands
|
||||
|
||||
**🎬 YouTube Commands**
|
||||
- Automatic preview when YouTube links are posted
|
||||
- `!yt [search terms]` - Search for YouTube videos
|
||||
- Shows video info, description, and attempts to fetch lyrics
|
||||
|
||||
**📰 !xkcd**
|
||||
Fetches and displays a random XKCD comic.
|
||||
|
||||
### Administration Commands
|
||||
*Admin only - requires admin_user configuration*
|
||||
|
||||
**🔧 !set [option] [value]**
|
||||
Set configuration options (admin_user, prefix)
|
||||
|
||||
**🔍 !get [option]**
|
||||
Get configuration values
|
||||
|
||||
**💾 !saveconf**
|
||||
Save current configuration
|
||||
|
||||
**📥 !loadconf**
|
||||
Load saved configuration
|
||||
|
||||
**👁️ !show**
|
||||
Display current configuration
|
||||
|
||||
**🔄 !reset**
|
||||
Reset configuration to defaults
|
||||
|
||||
**📤 !load [plugin]**
|
||||
Load a plugin
|
||||
|
||||
**📥 !unload [plugin]**
|
||||
Unload a plugin
|
||||
|
||||
**🔄 !reload**
|
||||
Reload all plugins
|
||||
|
||||
**🚫 !disable [plugin] [room_id]**
|
||||
Disable a plugin for specific room
|
||||
|
||||
**✅ !enable [plugin] [room_id]**
|
||||
Enable a plugin for specific room
|
||||
|
||||
**⚙️ !rehash**
|
||||
Reload configuration
|
||||
|
||||
### Cron System
|
||||
|
||||
**⏱️ !cron [add|remove] [room_id] [cron_entry] [command]**
|
||||
Schedule automated commands using cron syntax:
|
||||
- `add` - Add a new cron job
|
||||
- `remove` - Remove an existing cron job
|
||||
|
||||
## Full AI Command List
|
||||
|
||||
The bot includes over 100 specialized AI commands covering various domains:
|
||||
|
||||
**Creative & Writing**: !write, !script, !author, !poem, !rap, !story, !comic, !motiv, !debate
|
||||
|
||||
**Technical**: !tech, !dev, !py, !php, !regex, !math, !web, !it, !security, !ai, !ml, !data, !game
|
||||
|
||||
**Professional**: !seo, !recruit, !coach, !devrel, !sales, !ceo, !mgmt, !startup, !invest, !fin
|
||||
|
||||
**Educational**: !tutor, !teach, !edu, !acad, !hist, !astro, !chem, !math, !psych
|
||||
|
||||
**Lifestyle**: !fit, !health, !diet, !cook, !travel, !art, !music, !film, !gaming
|
||||
|
||||
**Specialized**: !legal, !medical, !realest, !auto, !fashion, !design, !interior
|
||||
|
||||
And many more! Use `!help` in chat to see the complete list with descriptions.
|
||||
|
||||
## Configuration
|
||||
|
||||
The bot uses a TOML configuration file (`funguy.conf`) for settings:
|
||||
- `admin_user` - Matrix user ID with admin privileges
|
||||
- `prefix` - Command prefix (default: "!")
|
||||
- Plugin-specific settings in `plugins/ai.json` for AI commands
|
||||
|
||||
## Dependencies
|
||||
|
||||
- Python 3.7+
|
||||
- simplematrixbotlib
|
||||
- Various AI/ML services (Stable Diffusion, Ollama, etc.)
|
||||
- Database support (SQLite)
|
||||
- External APIs (OpenWeatherMap, Urban Dictionary, YouTube)
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
- Ensure all environment variables are set correctly
|
||||
- Check that required services are running (Stable Diffusion API, Ollama, etc.)
|
||||
- Verify plugin permissions and whitelist settings
|
||||
- Check logs for detailed error information
|
||||
|
||||
## Support
|
||||
|
||||
Join our Matrix room for support and community:
|
||||
[Self-hosting | Security | Sysadmin | Homelab | Programming](https://matrix.to/#/#selfhosting:mozilla.org)
|
||||
|
||||
## Credits
|
||||
|
||||
**🧙♂️ Creator & Developer**: HB (@hashborgir:mozilla.org)
|
||||
**🍄 Funguy Bot** - Created during recovery from cervical spinal surgery
|
||||
|
||||
---
|
||||
|
||||
*Note: This bot was created rapidly and may contain bugs. Please report issues and contribute improvements!*
|
||||
|
Reference in New Issue
Block a user