-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split Long Responses in Two and Improve Logging
This fixes https://github.com/rlywtf/DiscordianAI/issues/14 by splitting any response that is long into two messages from a newline closest to the middle. While here I've improved the logging capabilities. `Flake8`'s line length test is set to 99 overriding the default and I also bumped the complexity limit from 10 to 20. The `on_message` function has been broken up to avoid the Flake8 complexity failures. We now have one function for DMs and another for channel messages. The `discordian.sh` script's redundant background mode was removed.
- Loading branch information
1 parent
35d7bc1
commit c61eb44
Showing
4 changed files
with
178 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters