This directory contains multiple examples demonstrating how to use different features of the [matrix.py] library. Each example is self-contained and can be run independently.
-
You will first need to update the environment variables in the config.yaml file with your Matrix credentials and desired settings.
-
To run any of the examples, navigate to the
examplesdirectory from your command line and execute the desired Python file using the command line. For instance:
python3 error_handling.pyMake sure you have all the necessary dependencies installed and configured before running the examples as instructed in the root README file.
- error_handling.py: Demonstrates how to handle errors in commands.
- cooldown.py: Shows how to implement cooldowns for commands.
- ping.py: A simple ping command example.
- reaction.py: Example of handling reactions to messages.
- checks.py: Demonstrates how to use checks for command execution.
- scheduler.py: Shows how to schedule tasks.