Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
030f7b1
strtobool support enable and disable, perhaps you meant for config help
Taaku18 Nov 4, 2019
de71ab2
Reformat code
Taaku18 Nov 4, 2019
1453108
Improved multicommand alias v3.3.1-dev1
Taaku18 Nov 7, 2019
060c5b0
Fixed some issues with alias from last commit
Taaku18 Nov 7, 2019
5a079c6
Unused imports
Taaku18 Nov 7, 2019
1fa212a
v3.3.1-dev2
Taaku18 Nov 12, 2019
c0c8db9
added fallback category
Nov 15, 2019
9e0e6ca
whoops
Aloqeely Nov 15, 2019
b41acc7
black formatting
Nov 16, 2019
2640053
strtobool support enable and disable, perhaps you meant for config help
Taaku18 Nov 4, 2019
e699865
Reformat code
Taaku18 Nov 4, 2019
c6c723d
Improved multicommand alias v3.3.1-dev1
Taaku18 Nov 7, 2019
0f85615
Fixed some issues with alias from last commit
Taaku18 Nov 7, 2019
ba1d5c8
Unused imports
Taaku18 Nov 7, 2019
0a74961
v3.3.1-dev2
Taaku18 Nov 12, 2019
cb00a0f
Sync workflow and issue template from master
Taaku18 Nov 16, 2019
68f93df
Sync workflow and issue template from master
Taaku18 Nov 16, 2019
ca75885
Improved dockerfile and changed stale limit
Taaku18 Nov 17, 2019
d283dac
Merge from master
Taaku18 Nov 19, 2019
48e801d
better logic
Nov 19, 2019
9e81e23
Change block help to fix mistake.
StephenDaDev Nov 24, 2019
a0d820b
Merge pull request #636 from DAzVise/development
Taaku18 Nov 26, 2019
d7c511d
3.3.2-dev3 fallback category
Taaku18 Nov 26, 2019
eae60ad
Merge pull request #648 from StephenDaDev/development
Taaku18 Nov 27, 2019
013a1cf
Fix typo
Taaku18 Nov 27, 2019
7bed1b8
Merge branch 'development' of https://github.com/kyb3r/modmail into d…
Taaku18 Nov 27, 2019
faeaf49
Fixed typos
Taaku18 Nov 28, 2019
e9e8992
v3.3.2-dev4 freply, fixed alias bugs, alias and snippet looks
Taaku18 Nov 30, 2019
611c951
Fixed ?help freply
Taaku18 Dec 3, 2019
9385f37
v3.3.2-dev5 - fix edit/delete
Taaku18 Dec 4, 2019
55b25cb
...
Taaku18 Dec 4, 2019
e9430d0
Swapped contact position, fixed a slight issue with audit from last u…
Taaku18 Dec 4, 2019
1d2f727
whoops
Taaku18 Dec 4, 2019
e6e1a51
Delete build_docker.yml
Taaku18 Dec 4, 2019
1ded678
whoops
Taaku18 Dec 4, 2019
c0e3b54
Merge branch 'development' of https://github.com/kyb3r/modmail into d…
Taaku18 Dec 4, 2019
72f8962
Fix some stuff
Taaku18 Dec 4, 2019
acf6aa9
merge from master into dev
Taaku18 Dec 9, 2019
6d15d8f
Bump version to 3.4.0-dev6
Taaku18 Dec 9, 2019
84a7910
Changed disable to disable new
Taaku18 Dec 9, 2019
52ec750
Add poetry support
Taaku18 Dec 13, 2019
f6044de
fixed reaction / delete
Taaku18 Dec 13, 2019
c1dad31
I forgot about reaction remove, whoops
Taaku18 Dec 13, 2019
232b554
Pipenv lock: 1 min, poetry lock: 2 sec, poetry > pipenv
Taaku18 Dec 13, 2019
ca0b61d
officially v3.4.0
Taaku18 Dec 14, 2019
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
4 changes: 2 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ celerybeat-schedule
.venv
env/
venv/
venv2/
ENV/
env.bak/
venv.bak/
Expand Down Expand Up @@ -145,8 +146,7 @@ app.json
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Pipfile
Pipfile.lock
requirements.min.txt
Procfile
pyproject.toml
README.md
Expand Down
12 changes: 3 additions & 9 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,16 @@ jobs:
# python-version: [3.6, 3.7]

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install bandit flake8 pylint black
python -m pip install bandit pylint black
continue-on-error: true
- name: Bandit syntax check
run: bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
Expand All @@ -37,4 +32,3 @@ jobs:
- name: Black and flake8
run: |
black . --check
flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503
8 changes: 5 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: "Close stale issues"
name: "Close Stale Issues"

on:
schedule:
- cron: "0 0 * * *"
Expand All @@ -10,6 +11,7 @@ jobs:
- uses: actions/stale@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: 'This issue is stale because it has been open for 3 months with no activity. Remove stale label or comment or this will be closed in 5 days'
days-before-stale: 90
stale-issue-message: 'This issue is stale because it has been open for 100 days with no activity. Remove stale label or comment or this will be closed in 5 days. Please do not un-stale this issue unless it carries significant contribution.'
days-before-stale: 100
days-before-close: 5
exempt-issue-label: 'high priority'
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ indent-after-paren=4
indent-string=' '

# Maximum number of characters on a single line.
max-line-length=100
max-line-length=99

# Maximum number of lines in a module.
max-module-lines=1000
Expand Down
29 changes: 0 additions & 29 deletions .travis.yml

This file was deleted.

46 changes: 46 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,52 @@ This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.
however, insignificant breaking changes does not guarantee a major version bump, see the reasoning [here](https://github.com/kyb3r/modmail/issues/319).


# v3.4.0


### Added

- Thread cooldown!
- Set via the new config var `thread_cooldown`.
- Specify a time for the recipient to wait before allowed to create another thread.
- Fallback Category (thanks to DAzVise PR#636)
- Automatically created upon reaching the 50 channels limit.
- Manually set fallback category with the config var `fallback_category_id`.
- "enable" and "disable" support for yes or no config vars.
- Added "perhaps you meant" section to `?config help`.
- Multi-command alias is now more stable. With support for a single quote escape `\"`.
- New command `?freply`, which behaves exactly like `?reply` with the addition that you can substitute `{channel}`, `{recipient}`, and `{author}` to be their respective values.
- New command `?repair`, repair any broken Modmail thread (with help from @officialpiyush).
- Recipient get feedback when they edit message.
- Chained delete for DMs now comes with a message.
- poetry (in case someone needs it).

### Changed

- The look of alias and snippet when previewing.
- Message ID of the thread embed is saved in DB, instead of the original message.
- Swapped the position of user and category for `?contact`.
- The log file will no longer grow infinitely large.
- Hard limit of maximum 25 steps for alias.
- `?disable` is now `?disable new`.

### Fixed

- Setting config vars using human time wasn't working.
- Fixed some bugs with aliases.
- Fixed a lot of issues with `?edit` and `?delete` and recipient message edit.
- Masked the error: "AttributeError: 'int' object has no attribute 'name'"
- Channel delete event will not be checked until discord.py fixes this issue.
- Chained reaction add / remove.
- Chained delete for thread channels.

### Internal

- Commit to black format line width max = 99, consistent with pylint.
- Alias parser is rewritten without shlex.
- New checks with thread create / find.
- No more flake8 and travis.

# v3.3.2

### Fixed
Expand Down
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
FROM python:3.7.4-alpine
FROM python:3.7-alpine
WORKDIR /modmailbot
COPY . /modmailbot
RUN pip install --no-cache-dir -r requirements.min.txt
CMD ["python", "bot.py"]
RUN export PIP_NO_CACHE_DIR=false \
&& apk update \
&& apk add --update --no-cache --virtual .build-deps alpine-sdk \
&& pip install pipenv \
&& pipenv install --deploy --ignore-pipfile \
&& apk del .build-deps
CMD ["pipenv", "run", "bot"]
3 changes: 1 addition & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ verify_ssl = true
black = "==19.3b0"
pylint = "*"
bandit = "==1.6.2"
flake8 = "==3.7.8"

[packages]
colorama = ">=0.4.0"
Expand All @@ -18,7 +17,7 @@ motor = ">=2.0.0"
natural = "==0.2.0"
isodate = ">=0.6.0"
dnspython = "~=1.16.0"
parsedatetime = "==2.4"
parsedatetime = "==2.5"
aiohttp = "<3.6.0,>=3.3.0"
python-dotenv = ">=0.10.3"
pipenv = "*"
Expand Down
Loading