2023-04-17 20:28:29 +00:00
|
|
|
# Copy this file to config.ini and replace the values below to match your needs
|
|
|
|
#
|
|
|
|
# The values that are not commented have to be set, everything else comes with
|
|
|
|
# sensible defaults.
|
|
|
|
|
2023-05-25 12:41:32 +00:00
|
|
|
###############################################################################
|
|
|
|
|
2024-03-02 14:31:14 +00:00
|
|
|
[RSSBot]
|
2023-05-25 12:41:32 +00:00
|
|
|
|
|
|
|
# Some way for the user to contact you.
|
|
|
|
# Ideally, either your personal user ID or a support room
|
|
|
|
# If this is your user ID and Debug is 1, any errors that occur when using the script will be reported to you in detail
|
|
|
|
#
|
|
|
|
Operator = Contact details not set
|
|
|
|
|
2024-03-02 16:13:04 +00:00
|
|
|
# Minimum duration of a single loop
|
|
|
|
# By default, this is set to 300, meaning that rooms get updated approximately every 300 seconds, unless the total loop takes longer
|
|
|
|
#
|
|
|
|
# LoopDuration = 300
|
|
|
|
|
2023-05-25 12:41:32 +00:00
|
|
|
# Enable debug mode
|
|
|
|
# Will send error tracebacks to you (= Operator above) if an error occurs processing a message from you
|
|
|
|
# Defaults to 0 (= off)
|
|
|
|
#
|
|
|
|
# Debug = 1
|
|
|
|
|
|
|
|
# The default room name used by the !newroom command
|
2024-03-02 14:31:14 +00:00
|
|
|
# Defaults to RSSBot if not set
|
2023-05-25 12:41:32 +00:00
|
|
|
#
|
2024-03-02 14:31:14 +00:00
|
|
|
# DefaultRoomName = RSSBot
|
2023-05-25 12:41:32 +00:00
|
|
|
|
|
|
|
# Display name for the bot
|
|
|
|
#
|
2024-03-02 14:31:14 +00:00
|
|
|
# DisplayName = RSSBot
|
2023-05-25 12:41:32 +00:00
|
|
|
|
|
|
|
# A list of allowed users
|
|
|
|
# If not defined, everyone is allowed to use the bot
|
|
|
|
# Use the "*:homeserver.matrix" syntax to allow everyone on a given homeserver
|
|
|
|
#
|
|
|
|
# AllowedUsers = ["*:matrix.local"]
|
|
|
|
|
|
|
|
# Minimum level of log messages that should be printed
|
|
|
|
# Available log levels in ascending order: trace, debug, info, warning, error, critical
|
|
|
|
# Defaults to info
|
|
|
|
#
|
|
|
|
LogLevel = info
|
|
|
|
|
|
|
|
###############################################################################
|
|
|
|
|
2023-04-16 14:08:57 +00:00
|
|
|
[Matrix]
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# The URL to your Matrix homeserver
|
|
|
|
#
|
2023-12-05 09:09:14 +00:00
|
|
|
# If you are using Pantalaimon, this should be the URL of your Pantalaimon
|
|
|
|
# instance, not the Matrix homeserver itself.
|
|
|
|
#
|
2023-04-16 14:08:57 +00:00
|
|
|
Homeserver = https://matrix.local
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# An Access Token for the user your bot runs as
|
|
|
|
# Can be obtained using a request like this:
|
|
|
|
#
|
|
|
|
# See https://www.matrix.org/docs/guides/client-server-api#login
|
|
|
|
# for information on how to obtain this value
|
|
|
|
#
|
2023-04-16 14:08:57 +00:00
|
|
|
AccessToken = syt_yoursynapsetoken
|
2023-04-17 20:28:29 +00:00
|
|
|
|
|
|
|
# The Matrix user ID of the bot (@local:domain.tld)
|
|
|
|
# Only specify this if the bot fails to figure it out by itself
|
|
|
|
#
|
2024-03-02 14:31:14 +00:00
|
|
|
# UserID = @rssbot:matrix.local
|
2023-05-25 12:41:32 +00:00
|
|
|
|
feat: add message event type configuration
Added support for configurable event types for sending messages, enabling use of either "text" or "notice" message types as per user preference. Additionally, this update brings along improvements including code cleanup, updated dependencies to improve functionality and fix potential security issues, and reorganization of example configuration files into a more structured directory. Significant refactorings standardize async task creations and remove unused imports, streamlining the codebase for better maintainability and performance.
- Introduced `EventType` in `config.dist.ini` to allow users to specify the desired event type for outbound messages.
- Upgraded dependency versions in `pyproject.toml`, adding `future` for forward compatibility.
- Removed the deprecated `rssbot-pantalaimon.service` and unused image/file send functions in `bot.py`, focusing on core functionalities.
- Reorganized `pantalaimon.example.conf` into `contrib` directory for better project structure.
- Simplified logging and callback handling, removing redundant code paths and improving code readability.
- Bumped project version to 0.1.2, paving the way for new features and fixes.
This enhancement is aimed at providing users with greater flexibility in how messages are sent, accommodating different use cases and preferences.
2024-05-17 14:49:27 +00:00
|
|
|
# The event type to use for sending messages
|
|
|
|
# Can be either "text" or "notice"
|
|
|
|
# Defaults to "notice", can be overridden using the `eventtype` command
|
|
|
|
#
|
|
|
|
# EventType = notice
|
|
|
|
|
2023-11-28 17:15:21 +00:00
|
|
|
###############################################################################
|