Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v2.0, added punctuation support, added AllowedUsers, WhisperCooldown, EnableGenerateCommand, MinSentenceWordAmount and SentenceSeparator #17

Merged
merged 33 commits into from
Jul 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
d8c1b4f
chore: clean up readme
justinrusso Jun 13, 2021
084a60d
feat: implement bot owner to have same power as broadcaster
justinrusso Jun 13, 2021
3f34867
feat: allow disabling of whispering globally
justinrusso Jun 13, 2021
5ba082e
refactor: additional logging
justinrusso Jun 13, 2021
ef1962c
feat: add disabling generate command while still generating at interval
justinrusso Jun 13, 2021
63a71f6
refactor: disable HelpMessageTimer setting by default
justinrusso Jun 13, 2021
3757980
chore: add gitignore file
justinrusso Jun 13, 2021
8f87d89
refactor: change settings file to .json extension
justinrusso Jun 13, 2021
b22d9d5
feat: strip message before tokenizing sentences
justinrusso Jun 13, 2021
b1c0416
refactor: add typing to methods
justinrusso Jun 14, 2021
33f43ab
refactor: remove unused import
justinrusso Jun 14, 2021
a28b9c1
refactor: type settings data
justinrusso Jun 14, 2021
875d1c2
fix: remove circular import
justinrusso Jun 14, 2021
8a922e4
refactor: pass json data to set_settings instead
justinrusso Jun 14, 2021
b705335
refactor: set default help_message_timer to -1
justinrusso Jun 14, 2021
6f0bdb2
feat: add additional sentence if END is below minimum sentence words
justinrusso Jun 14, 2021
569e853
docs: add newly added settings to settings table in readme
justinrusso Jun 14, 2021
6344a12
Merge pull request #14 from justinrusso/master
tomaarsen Jun 21, 2021
4cfeb2d
Reintroduce support for Python 3.6 and 3.7
tomaarsen Jun 21, 2021
1c6d7ac
Automatic update of settings file from old version
tomaarsen Jun 21, 2021
829c2e8
Merge pull request #15 from tomaarsen/updater_1_settings
tomaarsen Jun 21, 2021
0387afc
Moved logging, renamed bot_owner, should_whisper
tomaarsen Jun 21, 2021
04b2d98
Set default help message timer to once every 5 hours
tomaarsen Jun 21, 2021
2948c5b
Added sample settings.json
tomaarsen Jun 21, 2021
23f5e57
Remove settings.json
tomaarsen Jun 21, 2021
602d4c3
Improved docstrings heavily
tomaarsen Jun 21, 2021
cf14dda
Large rework of how punctuation is handled
tomaarsen Jun 22, 2021
e059a8c
Remove debugging
tomaarsen Jul 27, 2021
98a8e3e
Modified SQL formatting
tomaarsen Jul 27, 2021
bff7cfc
Updated Readme Settings section
tomaarsen Jul 27, 2021
e6addd5
Merge pull request #16 from tomaarsen/updater_1_punctuation
tomaarsen Jul 27, 2021
c9035f6
Further updated Settings section in README
tomaarsen Jul 27, 2021
e6f2c84
Added contributor kudos
tomaarsen Jul 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 148 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/

# IDE
.vscode/

# Settings
# This file should be automatically generated at launch if not created already
settings.json

# Database files
*.db
Loading