v0.1.2 Add daemon control script
What's Changed
- Update python packages by @rlywtf in #6
- Create dependabot.yml for pip by @rlywtf in #7
- Update README.md Badges by @rlywtf in #10
- Bump pytest-asyncio from 0.21.1 to 0.23.2 by @dependabot in #8
- Bump openai from 1.2.3 to 1.3.8 by @dependabot in #9
- Create python-app.yml Workflows by @rlywtf in #12
- Bump openai from 1.3.8 to 1.5.0 by @dependabot in #13
- Add discordian.sh control script with logging by @rlywtf in #15
- Bump openai from 1.5.0 to 1.6.1 by @dependabot in #16
- Bump pytest from 7.4.3 to 7.4.4 by @dependabot in #17
- Bump pytest-asyncio from 0.23.2 to 0.23.3 by @dependabot in #24
- Bump pyflakes from 3.1.0 to 3.2.0 by @dependabot in #23
- Bump flake8 from 6.1.0 to 7.0.0 by @dependabot in #22
- Fix flake8 failures and warnings then enforce PEP8 by @rlywtf in #25
- Ignore Test Bot .ini file by @rlywtf in #26
- Update .gitignore for all Test Bot Files by @rlywtf in #27
Full Changelog: v0.1.1...v0.1.2
Daemon Control Script
discordian.sh
is a bash script for launching a DiscordianAI bot with customizable configurations. It is suitable for both manual execution and running via crontab.
Features
- Strict error checking: The script exits on any error and recognizes failures in pipelines.
- Logging: The script logs events with timestamps for better tracking.
- Customizable configurations: The script allows for different modes of operation and configurations.
- Error Handling: It logs errors and exits on failure.
- Process Handling: It terminates existing instances of the bot before starting a new one.
Usage
The script accepts the following command line arguments:
-d
or--daemon
: Runs the bot in daemon mode with no output to the terminal.-b
or--background
: Runs the bot in background mode with output redirected tonohup.out
.-c
or--config
: Allows the use of a custom configuration file. The next argument should be the path to the configuration file.-f
or--folder
: Allows the use of a base folder. The next argument should be the path to the base folder.
Daemon Example
./discordian.sh -d -c /path/to/config.ini -f /path/to/base/folder
New Contributors
- @dependabot made their first contribution in #8
Contributing
Contributions are welcome! Please open an issue or pull request on the GitHub repository.
If you have any questions or concerns, please contact us at [email protected]