Skip to content

v0.1.2 Add daemon control script

Compare
Choose a tag to compare
@rlywtf rlywtf released this 08 Jan 03:06
· 183 commits to main since this release

What's Changed

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 to nohup.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

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]