Skip to content

Commit 9c4b98a

Browse files
authored
Merge pull request #2751 from kyb3r/update
Update v3.4.0
2 parents a26cd4e + ca0b61d commit 9c4b98a

27 files changed

+1897
-1344
lines changed

.dockerignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ celerybeat-schedule
9393
.venv
9494
env/
9595
venv/
96+
venv2/
9697
ENV/
9798
env.bak/
9899
venv.bak/
@@ -145,8 +146,7 @@ app.json
145146
CHANGELOG.md
146147
CODE_OF_CONDUCT.md
147148
CONTRIBUTING.md
148-
Pipfile
149-
Pipfile.lock
149+
requirements.min.txt
150150
Procfile
151151
pyproject.toml
152152
README.md

.github/workflows/lints.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,16 @@ jobs:
1313
# python-version: [3.6, 3.7]
1414

1515
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
python-version: [3.6, 3.7]
20-
2116
steps:
2217
- uses: actions/checkout@v1
23-
- name: Set up Python ${{ matrix.python-version }}
18+
- name: Set up Python 3.7
2419
uses: actions/setup-python@v1
2520
with:
26-
python-version: ${{ matrix.python-version }}
21+
python-version: 3.7
2722
- name: Install dependencies
2823
run: |
2924
python -m pip install --upgrade pip
30-
python -m pip install bandit flake8 pylint black
25+
python -m pip install bandit pylint black
3126
continue-on-error: true
3227
- name: Bandit syntax check
3328
run: bandit ./bot.py cogs/*.py core/*.py -b .bandit_baseline.json
@@ -37,4 +32,3 @@ jobs:
3732
- name: Black and flake8
3833
run: |
3934
black . --check
40-
flake8 ./bot.py cogs/*.py core/*.py --ignore=E501,E203,W503

.github/workflows/stale.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: "Close stale issues"
1+
name: "Close Stale Issues"
2+
23
on:
34
schedule:
45
- cron: "0 0 * * *"
@@ -10,6 +11,7 @@ jobs:
1011
- uses: actions/stale@v1
1112
with:
1213
repo-token: ${{ secrets.GITHUB_TOKEN }}
13-
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'
14-
days-before-stale: 90
14+
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.'
15+
days-before-stale: 100
1516
days-before-close: 5
17+
exempt-issue-label: 'high priority'

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ indent-after-paren=4
267267
indent-string=' '
268268

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

272272
# Maximum number of lines in a module.
273273
max-module-lines=1000

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

CHANGELOG.md

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

99

10+
# v3.4.0
11+
12+
13+
### Added
14+
15+
- Thread cooldown!
16+
- Set via the new config var `thread_cooldown`.
17+
- Specify a time for the recipient to wait before allowed to create another thread.
18+
- Fallback Category (thanks to DAzVise PR#636)
19+
- Automatically created upon reaching the 50 channels limit.
20+
- Manually set fallback category with the config var `fallback_category_id`.
21+
- "enable" and "disable" support for yes or no config vars.
22+
- Added "perhaps you meant" section to `?config help`.
23+
- Multi-command alias is now more stable. With support for a single quote escape `\"`.
24+
- New command `?freply`, which behaves exactly like `?reply` with the addition that you can substitute `{channel}`, `{recipient}`, and `{author}` to be their respective values.
25+
- New command `?repair`, repair any broken Modmail thread (with help from @officialpiyush).
26+
- Recipient get feedback when they edit message.
27+
- Chained delete for DMs now comes with a message.
28+
- poetry (in case someone needs it).
29+
30+
### Changed
31+
32+
- The look of alias and snippet when previewing.
33+
- Message ID of the thread embed is saved in DB, instead of the original message.
34+
- Swapped the position of user and category for `?contact`.
35+
- The log file will no longer grow infinitely large.
36+
- Hard limit of maximum 25 steps for alias.
37+
- `?disable` is now `?disable new`.
38+
39+
### Fixed
40+
41+
- Setting config vars using human time wasn't working.
42+
- Fixed some bugs with aliases.
43+
- Fixed a lot of issues with `?edit` and `?delete` and recipient message edit.
44+
- Masked the error: "AttributeError: 'int' object has no attribute 'name'"
45+
- Channel delete event will not be checked until discord.py fixes this issue.
46+
- Chained reaction add / remove.
47+
- Chained delete for thread channels.
48+
49+
### Internal
50+
51+
- Commit to black format line width max = 99, consistent with pylint.
52+
- Alias parser is rewritten without shlex.
53+
- New checks with thread create / find.
54+
- No more flake8 and travis.
55+
1056
# v3.3.2
1157

1258
### Fixed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
FROM python:3.7.4-alpine
1+
FROM python:3.7-alpine
22
WORKDIR /modmailbot
33
COPY . /modmailbot
4-
RUN pip install --no-cache-dir -r requirements.min.txt
5-
CMD ["python", "bot.py"]
4+
RUN export PIP_NO_CACHE_DIR=false \
5+
&& apk update \
6+
&& apk add --update --no-cache --virtual .build-deps alpine-sdk \
7+
&& pip install pipenv \
8+
&& pipenv install --deploy --ignore-pipfile \
9+
&& apk del .build-deps
10+
CMD ["pipenv", "run", "bot"]

Pipfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ verify_ssl = true
77
black = "==19.3b0"
88
pylint = "*"
99
bandit = "==1.6.2"
10-
flake8 = "==3.7.8"
1110

1211
[packages]
1312
colorama = ">=0.4.0"
@@ -18,7 +17,7 @@ motor = ">=2.0.0"
1817
natural = "==0.2.0"
1918
isodate = ">=0.6.0"
2019
dnspython = "~=1.16.0"
21-
parsedatetime = "==2.4"
20+
parsedatetime = "==2.5"
2221
aiohttp = "<3.6.0,>=3.3.0"
2322
python-dotenv = ">=0.10.3"
2423
pipenv = "*"

0 commit comments

Comments
 (0)