Files
meshcore-bot/config.ini.quickstart
T
agessaman 883b67daf9 Update per-user rate limit and implement version command support
- Increased the per-user rate limit from 5 to 30 seconds across multiple configuration files to reduce response frequency.
- Added the version command to the configuration examples and updated help text to include the new command.
- Refactored version information retrieval in the bot and web viewer to utilize a shared runtime resolver for consistency.
- Improved documentation in README.md to reflect changes in commands and configuration options.
2026-04-05 20:00:01 -07:00

68 lines
1.7 KiB
Plaintext

# MeshCore Bot - Easy Start Config
# 1. Copy to config.ini
# 2. Set serial_port (or hostname for TCP), bot_name, bot_latitude, bot_longitude
# 3. Run: python3 meshcore_bot.py
[Connection]
connection_type = serial
serial_port = /dev/ttyUSB0
timeout = 30
[Bot]
bot_name = MeshCoreBot
enabled = true
bot_latitude = 40.7128
bot_longitude = -74.0060
db_path = meshcore_bot.db
rate_limit_seconds = 10
bot_tx_rate_limit_seconds = 1.0
per_user_rate_limit_seconds = 30
per_user_rate_limit_enabled = true
[Channels]
monitor_channels = general,test,emergency
respond_to_dms = true
max_response_hops = 10
[Banned_Users]
banned_users =
[Admin_ACL]
# 64-char hex public keys (comma-separated). Leave blank to disable admin commands.
admin_pubkeys =
admin_commands = repeater,webviewer,reload,channelpause
[Keywords]
test = "ack @[{sender}]{phrase_part} | {connection_info} | Received at: {timestamp}"
ping = "Pong!"
pong = "Ping!"
help = "Bot Help: test (or t), ping, version, help, hello, cmd, advert, wx, aqi, sun, moon, solar, hfcond, satpass, prefix, path, sports, dice, roll, stats | More: 'help <command>'"
[Logging]
log_level = INFO
# Rotates at 5 MB, keeps 3 backups (e.g. meshcore_bot.log.1, .2, .3)
log_file = meshcore_bot.log
# Weather (for wx command) - set default_state to your region
[Weather]
default_state = WA
default_country = US
# Path command - "p" shortcut for quick path decoding
[Path_Command]
enable_p_shortcut = true
[Version_Command]
enabled = true
# Sports - teams shown when user says "sports" with no args
[Sports_Command]
teams = seahawks,mariners,sounders,kraken
# Optional: Web viewer - uncomment to enable. SECURITY: no auth; use host=127.0.0.1 for localhost only.
# [Web_Viewer]
# enabled = true
# host = 127.0.0.1
# port = 8080
# auto_start = true