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

MinerMends Update v3.10.2 #1

Open
wants to merge 413 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
413 commits
Select commit Hold shift + click to select a range
25ebb56
Update version
fourjr Nov 19, 2021
f46d077
[BREAKING] Update discord.py to v2-master
fourjr Nov 20, 2021
96a9af0
Update bandit baseline
fourjr Nov 20, 2021
a1aacbf
Update bandit baseline:
fourjr Nov 20, 2021
1264557
Support PNG/APNG stickers
fourjr Nov 20, 2021
0ee363f
Update baseline
fourjr Nov 20, 2021
9121dce
Disable bandit
fourjr Nov 20, 2021
50446d4
Resolve linting
fourjr Nov 20, 2021
f429c22
Bump ver to 3.11.0-dev2
fourjr Nov 20, 2021
fb2e904
check for g.name==None #3088
fourjr Nov 21, 2021
33adfc3
Fix attachments in plain messages #3102
fourjr Nov 21, 2021
2f76202
Support LOTTIE images, resolves #3119
fourjr Nov 21, 2021
0de26a3
Bump version to 3.11-dev3
fourjr Nov 21, 2021
8d76a32
Fix editing notes, resolve #3094
fourjr Nov 21, 2021
8e4d4b0
Test potential fix for addusers #3090
fourjr Nov 21, 2021
a89a3fe
Update changelog
fourjr Nov 21, 2021
1444c1d
Formatting
fourjr Nov 21, 2021
13a22cf
require_close_reason config, resolves #3107
fourjr Nov 21, 2021
e44fb12
plain_snippets, ?fpareply and ?fpreply, resolves #3083
fourjr Nov 21, 2021
ec8fb29
use_nickname_channel_name, resolves #3112
fourjr Nov 21, 2021
d741738
Use discord relative timedeltas, resolves #3046
fourjr Nov 21, 2021
3af772f
Properly implement per-server avatars
fourjr Nov 21, 2021
998d938
Modmail now work in threads
fourjr Nov 21, 2021
67781ca
Formatting
fourjr Nov 21, 2021
ae1af88
Bunp version to v4-dev4
fourjr Nov 21, 2021
68bc573
Fix timezone mismatch
fourjr Nov 21, 2021
459b81d
format
fourjr Nov 21, 2021
da92d04
improve cairo warnings
fourjr Nov 21, 2021
28d8676
show_log_url_button for log urls resolves #3122
fourjr Nov 22, 2021
9866141
Use discord native buttons for pagination
fourjr Nov 22, 2021
e50cf1f
Select menus for some embed paginations #2913
fourjr Nov 22, 2021
77ed926
Bump version to v4-dev6
fourjr Nov 22, 2021
0bdaba6
Remove unused import
fourjr Nov 22, 2021
a743321
Remove unused import
fourjr Nov 22, 2021
8011ccd
Fix closing paginators
fourjr Nov 22, 2021
f7a882a
Optimise paginators page switching
fourjr Nov 22, 2021
c16ff26
Optimise Stop pagination
fourjr Nov 22, 2021
6adcd04
make config readable
lorenzo132 Nov 22, 2021
f8ad5fd
Process snippets in get_contexts
Qwerty-133 Nov 23, 2021
4de3491
Allow the usage of snippets in `alias add`
Qwerty-133 Nov 23, 2021
55e90f5
Handle snippet deletions and resolve aliases
Qwerty-133 Nov 27, 2021
3599f02
make the help output for snippets list its aliases
Qwerty-133 Nov 27, 2021
ba93b9c
Handle multi-word snippets
Qwerty-133 Nov 27, 2021
6041d37
Update the CHANGELOG
Qwerty-133 Nov 27, 2021
893acc9
Lint
Qwerty-133 Nov 28, 2021
aeb1128
Add git to Dockerfile
ChrisLovering Dec 5, 2021
d90c1ec
Regenerate reqs.txt and use full python image
ChrisLovering Dec 5, 2021
9b58b99
3.10.3 contact fix
Taaku18 Feb 8, 2022
fa718e4
Update to dpy@97fe07edb2f3d0f5a980917fb6ee479bf396fd94 & async changes
fourjr Mar 21, 2022
d6a3982
Update SPONSORS.json
Taaku18 Mar 28, 2022
e0032fd
Update SPONSORS.json
Taaku18 Mar 28, 2022
57349c6
Update sponsors list
Taaku18 Apr 16, 2022
be14cca
Update sponsors syntax issue
Taaku18 Apr 16, 2022
d9c884e
dpy-ecb2cf & Fix plugins not loading, resolve #3141
fourjr Apr 19, 2022
f03e203
fix blocked, resolve #3131
fourjr Apr 19, 2022
71daedc
update reqs.txt
fourjr Apr 20, 2022
0e05f44
Fix stop button in paginator
fourjr Apr 20, 2022
c57e342
Fix one-page paginator
fourjr Apr 20, 2022
d54b687
fix gh cmd, resolve #3149
fourjr Apr 28, 2022
46f711a
add title to ?logs, resolve #3142
fourjr Apr 28, 2022
a11c0ed
fix delete channel autoclose functionality
fourjr Apr 28, 2022
4aed3b4
Update dpy@a14b43f2fda863ed6555374eb872bf014bdd1adf
fourjr Apr 28, 2022
d4f869f
Merge branch 'add-git-to-docker-image' of https://github.com/python-d…
fourjr Apr 28, 2022
b6485d4
Merge branch 'python-discord-add-git-to-docker-image' into development
fourjr Apr 28, 2022
8700e4e
Merge branch 'patch-6' of https://github.com/lorenzo132/modmail into …
fourjr Apr 28, 2022
79e88ed
Merge branch 'lorenzo132-patch-6' into development
fourjr Apr 28, 2022
16816f3
formatting
fourjr Apr 28, 2022
499f9aa
Merge
fourjr Apr 28, 2022
6e7c85d
Merge branch 'Qwerty-133-snip-alias' into development
fourjr Apr 28, 2022
4f15cf6
update changelog
fourjr Apr 28, 2022
70decd8
Fix reqs
fourjr Apr 28, 2022
ef100c2
another attempt to fix reqs
fourjr Apr 28, 2022
c8b1a78
bump black https://github.com/psf/black/issues/2964
fourjr Apr 28, 2022
fe074f1
bump range of dependencies, resolve #3126
fourjr Apr 28, 2022
ab8662b
complete deps
fourjr Apr 28, 2022
99a6a5e
Fix lottie req & bump ver
fourjr Apr 28, 2022
c6ed564
shift to devpkgs
fourjr Apr 28, 2022
fff100d
update reqs.txt
fourjr Apr 28, 2022
17b2f89
add use_random_channel_name, resolve #3143
fourjr May 3, 2022
2214cbe
bump dpy@e9c7c09ebfe780d8f9de1e9e4d3c2dddf85eccfd
fourjr May 3, 2022
97c70bf
fix typing
fourjr May 3, 2022
afb9e3a
remove deprecated decorators.py
fourjr May 3, 2022
8d1e4f7
update changelog
fourjr May 3, 2022
ecc92e4
fix <3.9 features
fourjr May 3, 2022
e1efa8c
update jobs to cover 3.7-3.10 and all platforms
fourjr May 3, 2022
927fd37
fix linting file
fourjr May 3, 2022
0a7f862
fix lint gh-action
fourjr May 3, 2022
daa4ce7
only formally support Python 3.8+
fourjr May 3, 2022
5a32966
fix type annotation for PY3.8
fourjr May 3, 2022
b8df285
improve multi-page pagination dropdown and titles
fourjr May 3, 2022
77489be
bump version
fourjr May 3, 2022
454bdae
fix typos
fourjr May 3, 2022
e3571cd
update gtk message
fourjr May 3, 2022
fa135eb
Improve and error handling for update and autoupdate features.
Jerrie-Aries Jun 7, 2022
23221a2
Fix previous commit.
Jerrie-Aries Jun 7, 2022
f2865d2
Remove the set title after creating thread
Jun 25, 2022
80fe41e
Add the set title during creating the thread
Jun 25, 2022
c05725d
Update bot.py
Jun 25, 2022
19b42f0
Fix Future attached to different loop, issue #3165
Jerrie-Aries Jun 25, 2022
6d14fa3
Merge branch 'development' of https://github.com/Cordila/modmail into…
fourjr Jul 3, 2022
b896cb5
Merge branch 'Cordila-development' into development
fourjr Jul 3, 2022
0651ad9
Merge branch 'issue-3165' of https://github.com/Jerrie-Aries/modmail …
fourjr Jul 3, 2022
6e5099e
Merge branch 'Jerrie-Aries-issue-3165' into development
fourjr Jul 3, 2022
b446861
Merge branch 'autoupdate' of https://github.com/Jerrie-Aries/modmail …
fourjr Jul 3, 2022
50b4805
Merge branch 'Jerrie-Aries-autoupdate' into development
fourjr Jul 3, 2022
30a0daa
update changelog w new PRs
fourjr Jul 3, 2022
109197d
update contributing.md
fourjr Jul 3, 2022
3fe1ce8
update dpy@37c9ab7 and colorama
fourjr Jul 5, 2022
a93d81e
fix typo https://github.com/kyb3r/modmail/pull/3161#discussion_r91253…
fourjr Jul 5, 2022
ee47143
update version dv16
fourjr Jul 5, 2022
07c6dc1
Prevents loaded cogs from being loaded again
Jul 22, 2022
f274a79
Update bot.py
Jul 23, 2022
c7072ef
Add aliases to snippet add command.
StephenDaDev Aug 6, 2022
7bc3340
Bump dpy-2.0
fourjr Aug 22, 2022
ac2e36c
Bump dpy-2.0
fourjr Aug 22, 2022
302f5dc
Merge branch 'Cordila-patch-1' into development
fourjr Aug 22, 2022
e682663
Merge branch 'Cordila-patch-2' into development
fourjr Aug 22, 2022
57eca05
Skip loading of already-loaded cog #3172
fourjr Aug 22, 2022
e8ab0ca
Merge branch 'development' of https://github.com/StephenDaDev/modmail…
fourjr Aug 22, 2022
ed7a978
Merge branch 'StephenDaDev-development' into development
fourjr Aug 22, 2022
48ad5c4
snippet make create aliases, resolve #3172, close #3174
fourjr Aug 22, 2022
f68d8a2
Add `unhandled_by_cog` parameter to `ModmailBot.on_command_error`:
Jerrie-Aries Aug 24, 2022
fa3ad60
Update to discord.py 2.0.1 and fix time module
fourjr Sep 6, 2022
ad7b7e1
Merge branch 'issue-3170' of https://github.com/Jerrie-Aries/modmail …
fourjr Sep 6, 2022
3b94e8f
Merge branch 'Jerrie-Aries-issue-3170' into development
fourjr Sep 6, 2022
3ea3cf2
Update changelog
fourjr Sep 6, 2022
ecffec2
use silent as typing literal, resolve #3179
fourjr Sep 6, 2022
7b0c360
fix formatting
fourjr Sep 6, 2022
60e8444
bump ver
fourjr Sep 6, 2022
ec399c3
Autoupdate now automatically updates pipenv dependencies if possible
fourjr Sep 6, 2022
ddc34c0
formatting
fourjr Sep 6, 2022
1d3aac9
Fix time args, and use literals for close
fourjr Sep 6, 2022
30430a6
bump ver
fourjr Sep 6, 2022
420d4dc
formatting
fourjr Sep 6, 2022
711fb68
formatting
fourjr Sep 6, 2022
1080bcb
Merge branch 'master' into development
fourjr Sep 6, 2022
3d7b626
add comnts to lint file
fourjr Sep 6, 2022
039347f
Use new timestamps for userinfo and fix potential blocked parsing
fourjr Sep 20, 2022
ba4d6fb
Fix removeprefix issue by @Jerrie-Aries https://github.com/kyb3r/modm…
fourjr Sep 20, 2022
c6b4f53
Fix block logic and rewrite into helper function
fourjr Sep 20, 2022
ebfd37b
Purge Registry
fourjr Sep 20, 2022
7c2875c
Lock registry version
fourjr Sep 20, 2022
b7e25a0
Upgrade version to 3.10.5 with locked registry
fourjr Sep 20, 2022
1f9f633
Add suggest plugin #3189
fourjr Sep 20, 2022
cc4b4ff
Update changelog
fourjr Sep 20, 2022
8130566
Merge branch 'master' into development
fourjr Sep 20, 2022
b04ac78
Hotfix v4.0.1 for thread cooldown
fourjr Sep 20, 2022
d635752
Fixed runtime.txt to use a valid python version
sebkuip Sep 21, 2022
ea82848
Merge pull request #3197 from sebkuip/master
fourjr Sep 21, 2022
ec52cc2
Update modmail.py
Sep 22, 2022
7960761
Fix RuntimeError when presence intent disabled.
Jerrie-Aries Sep 23, 2022
ea0c5fc
Added advanced menu to registry
sebkuip Sep 24, 2022
71416d2
Merge pull request #3206 from sebkuip/master
fourjr Sep 24, 2022
9e86f22
Add giveaway plugin to registry. (#3208)
Jerrie-Aries Oct 1, 2022
a515662
Re-add/Expand FourJR Plugins
Coolguy3289 Oct 1, 2022
e978457
remove extra quotes
Coolguy3289 Oct 1, 2022
964c809
Update plugins/registry.json
Coolguy3289 Oct 1, 2022
a139de8
Add `announcement` plugin to registry.
Jerrie-Aries Oct 1, 2022
14ac193
Merge pull request #3212 from Jerrie-Aries/patch-registry
fourjr Oct 2, 2022
dc5c940
Merge pull request #3204 from Jerrie-Aries/issue-3203
Taaku18 Oct 3, 2022
766bbbb
Update CHANGELOG.md
Taaku18 Oct 3, 2022
4aadf63
Update Branch and Bot_Version
Coolguy3289 Oct 3, 2022
8ceb786
Merge pull request #3201 from Cordila/patch-2
Taaku18 Oct 15, 2022
df63dec
Update CHANGELOG.md
Taaku18 Oct 15, 2022
b84b26f
Merge pull request #3211 from Coolguy3289/patch-5
fourjr Oct 18, 2022
03558f7
Remove hard coded "( )" from plain messages
Dec 4, 2022
cde98e9
Fix guild icon not set issue
Dec 4, 2022
ccc53ea
Update bot.py
Dec 5, 2022
c63ed9d
Merge from master, make presence intent default off
Taaku18 Dec 8, 2022
b3ce7d0
Merge pull request #3235 from Cordila/patch-6
Taaku18 Dec 8, 2022
735d326
Merge pull request #3234 from Cordila/patch-4
Taaku18 Dec 8, 2022
f0e313c
Update changelog, and use default user icon instead of user avatar, s…
Taaku18 Dec 8, 2022
bb41861
Replaced discord.BadArgument with TypeError
Taaku18 Dec 8, 2022
aed97d5
Build and Push docker image to Githubs container registry (#3228)
Saturn745 Dec 19, 2022
5ea119f
Merge branch 'master' into development
Taaku18 Dec 19, 2022
88676e5
Update docker compose, changelog, and installation guide
Taaku18 Dec 19, 2022
6c690fe
Fix black formatting
Taaku18 Dec 19, 2022
b693b27
Bump version to v4.0.2
Taaku18 Dec 19, 2022
11eef8b
Add alias make/create as an alias to alias add & add to changelog (#3…
StephenDaDev Dec 19, 2022
c8b2522
Fix silently order in help embed (#3215)
lidistat67 Dec 19, 2022
485ab5a
Remove user fetching from blocked command (#3242)
khakers Jan 21, 2023
d6eba12
Update changelog
Taaku18 Jan 21, 2023
8d41c1d
Added the option for registry_plugins_only (#3247)
sebkuip Mar 8, 2023
1f3bd0e
Update changelog and updated all the links to new repo (#3251)
Taaku18 Mar 13, 2023
960a36e
Lints: update to setup Python v4 (#3243)
SpencerIsGiddy Mar 14, 2023
e919304
Remove python 3.8 and windows/macos lint check. (#3258)
Taaku18 Mar 14, 2023
f2a434b
Fix replies in dms not being sent (#3239)
RealCyGuy Mar 14, 2023
726fb0c
Update changelog
Taaku18 Mar 14, 2023
b21037c
Reminder Plugin (#3254)
martinbndr Mar 14, 2023
02250e8
Merge branch 'master' into development
Taaku18 Mar 21, 2023
a7a7ce1
feat(build): drop root privileges, update .dockerignore
suprovsky May 18, 2023
eb7995d
feat(build): add Dockerfile to .dockerignore
suprovsky May 18, 2023
fa1a949
Remove modmail_guild_id from env examples (#3281)
lorenzo132 Jul 9, 2023
319000b
Renamed user from app to modmail
Taaku18 Jul 9, 2023
8a68f42
Added .git to .dockerignore and unignored some files
Taaku18 Jul 9, 2023
16d0a80
Merge branch 'development' into development
Taaku18 Jul 9, 2023
fa572ee
Fixed unset registry_plugins_only causing non-registry plugins to fai…
Taaku18 Jul 14, 2023
389dfb6
To avoid confusion, config.get() only accepts one pos argument now
Taaku18 Jul 14, 2023
5ddb4e0
Set smaller size for guild icons urls on embed icons (#3261)
baptiste0928 Jul 15, 2023
b1f3645
`logs id` command (#3196)
Jul 15, 2023
43fbc31
Enable discord.py logger by default. (#3216)
Jerrie-Aries Jul 15, 2023
a784f82
Cleanup after unloading extension. (#3226)
Jerrie-Aries Jul 15, 2023
cc21725
Fix typo #3210 (#3233)
Jul 15, 2023
1adbacf
Strip whitespace in help command titles (#3271)
RealCyGuy Jul 15, 2023
77fbb69
confirm_thread_creation Buttons instead of reactions (#3273)
martinbndr Jul 15, 2023
48bf245
Fixed the description of some config help descriptions having copy-pa…
sebkuip Jul 15, 2023
d4ec13e
[Fix] disable new command not updating db config (#3278)
martinbndr Jul 15, 2023
d671998
Merge branch 'development' into development
Taaku18 Jul 15, 2023
f405aed
Update changelog
Taaku18 Jul 15, 2023
d891ad1
Remove Heroku Reference from Debug Command (#3292)
StephenDaDev Jul 15, 2023
40dff61
Merge branch 'master' into development
Taaku18 Jul 15, 2023
5170035
Added Autoreact plugin (#3285)
martinbndr Jul 15, 2023
2b66710
Fix #3291: Resolve code scanning alert for URL sanitization
Taaku18 Jul 17, 2023
f0c469e
Implement #3187: Enhance bot join/leave logs across servers
Taaku18 Jul 17, 2023
7508d52
Update readme with new documentation links, python version, and remov…
Taaku18 Oct 11, 2023
7dfd22c
Merge branch 'master' into development
Taaku18 Nov 17, 2023
6d61cf2
Add JSON logging support (#3305)
nullishamy Nov 19, 2023
5c71059
Update changelog
Taaku18 Nov 19, 2023
ae99060
Fix rate limit issue on raw reaction add/remove events. (#3306)
Jerrie-Aries Nov 19, 2023
a8d7c26
Update changelog
Taaku18 Nov 19, 2023
54f7b1c
Add config to manage how long logs are stored (#3257)
Nov 19, 2023
2bc51e8
Update changelog and added a note for comparing dates by string
Taaku18 Nov 19, 2023
c6f87cd
Add `rename` to `registry.json` (#3276)
Nicklaus-s Nov 19, 2023
5b2770c
Update changelog
Taaku18 Nov 19, 2023
a94e7a9
Fix bug with `?plugin update`. (#3295)
Jerrie-Aries Nov 19, 2023
8bd30dc
Update changelog
Taaku18 Nov 19, 2023
53d40e0
fix: discord invite ( new server ) (#3307)
lorenzo132 Nov 19, 2023
ec95eb7
Update deps: aiohttp, colorama, emoji
Taaku18 Nov 20, 2023
6fea4b6
Updated the rest of the dependencies
Taaku18 Nov 20, 2023
27a16fe
Bump dpy version to 2.3.2
Taaku18 Nov 20, 2023
9464c5d
Fixed compat with MissingRequiredArgument requiring additional param
Taaku18 Nov 20, 2023
ef349e8
black format + update changelog
Taaku18 Nov 20, 2023
7231a5d
update changelog
Taaku18 Nov 20, 2023
55f9ba8
Remove some more discriminator references
Taaku18 Nov 20, 2023
5482e94
Remove pkg_resources and replaced with packaging, updated requirement…
Taaku18 Nov 20, 2023
dcdfb95
Merge branch 'bugfix/incomplete-url-sanitization-3291' into development
Taaku18 Nov 20, 2023
0086e04
Merge branch 'feature/bot-join-leave-logs-3187' into development
Taaku18 Nov 20, 2023
71e6e87
Update changelog
Taaku18 Nov 20, 2023
048a9d2
Black reformat code
Taaku18 Nov 20, 2023
3af8dfa
Fixed #3315: gif stickers are now rendered correctly, allow bare stic…
Taaku18 Nov 21, 2023
35194d8
Update changelog
Taaku18 Nov 21, 2023
62ae637
Use discord[speed] extra
Taaku18 Nov 22, 2023
768d4da
Bump version to 4.1.0
Taaku18 Nov 26, 2023
61336bc
Merge pull request #3269 from modmail-dev/development
Taaku18 Nov 26, 2023
285e336
Fix Docker file permission issue (#3323)
raidensakura May 15, 2024
30bd958
Updated sponsors
Taaku18 May 26, 2024
8c04d25
Update sponsors
Taaku18 Jun 23, 2024
19ff5a0
Update sponsorship info
Taaku18 Aug 25, 2024
041c4fd
Update sponsorship info
Taaku18 Aug 25, 2024
da97bdc
Update SPONSORS.json (#3348)
andyondrya Oct 27, 2024
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
430 changes: 232 additions & 198 deletions .bandit_baseline.json

Large diffs are not rendered by default.

16 changes: 7 additions & 9 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,17 @@ temp/
test.py

# Other stuff
.dockerignore
.env.example
.git/
.gitignore
.lint.py
.pylintrc
.travis.yml
.github/
app.json
CHANGELOG.md
CODE_OF_CONDUCT.md
CONTRIBUTING.md
requirements.min.txt
Dockerfile
docker-compose.yml
Procfile
pyproject.toml
README.md
runtime.txt
SPONSORS.json
stack.yml
Pipfile
Pipfile.lock
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TOKEN=MyBotToken
LOG_URL=https://logviewername.herokuapp.com/
GUILD_ID=1234567890
MODMAIL_GUILD_ID=1234567890
OWNERS=Owner1ID,Owner2ID,Owner3ID
CONNECTION_URI=mongodb+srv://mongodburi
16 changes: 13 additions & 3 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,19 @@ Pull requests are the best way to propose changes to the codebase. We actively w
## Any contributions you make will be under the GNU Affero General Public License v3.0
In short, when you submit code changes, your submissions are understood to be under the same [GNU Affero General Public License v3.0](https://www.gnu.org/licenses/agpl-3.0.en.html) that covers the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using [Github Issues](https://github.com/kyb3r/modmail/issues)
We use GitHub issues to track public bugs. Report a bug by [opening a new Issue](https://github.com/kyb3r/modmail/issues/new); it's that easy!
## Report bugs using [Github Issues](https://github.com/modmail-dev/modmail/issues)
We use GitHub issues to track public bugs. Report a bug by [opening a new Issue](https://github.com/modmail-dev/modmail/issues/new); it's that easy!

## Find pre-existing issues to tackle
Check out our [unstaged issue tracker](https://github.com/modmail-dev/modmail/issues?q=is%3Aissue+is%3Aopen+-label%3Astaged) and start helping out!

Ways to help out:
- Help out new members
- Highlight invalid bugs/unsupported use cases
- Code review of pull requests
- Add on new use cases or reproduction steps
- Point out duplicate issues and guide them to the right direction
- Create a pull request to resolve the issue!

## Write bug reports with detail, background, and sample code
**Great Bug Reports** tend to have:
Expand All @@ -43,7 +54,6 @@ We use GitHub issues to track public bugs. Report a bug by [opening a new Issue]
- What *actually* happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)


## Use a Consistent Coding Style
We use [black](https://github.com/python/black) for a unified code style.

Expand Down
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

55 changes: 55 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Bug Report
description: File a bug report
title: "[BUG]: your bug report title"
labels: "maybe: bug"
body:
- type: input
id: bot-info-version
attributes:
label: Bot Version
description: Check it with `@modmail about`
placeholder: eg. v3.9.4
validations:
required: true
- type: dropdown
id: bot-info-hosting
attributes:
label: How are you hosting Modmail?
description: You can check it with `@modmail about` if you are unsure
options:
- Heroku
- Systemd
- PM2
- Patreon
- Other
validations:
required: true
- type: input
id: logs
attributes:
label: Error Logs
placeholder: https://hastebin.cc/placeholder
description:
"If your Modmail bot is online, type `@modmail debug hastebin` and include the link here.

If your Modmail bot is not online or the previous command did not generate a link, do the following:

1. Select your *bot* application at https://dashboard.heroku.com

2. [Restart your bot](https://i.imgur.com/3FcrlKz.png)

3. Reproduce the error to populate the error logs

4. [Copy and paste the logs](https://i.imgur.com/TTrhitm.png)"
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: "[optional] You may add screenshots to further explain your problem."
- type: textarea
id: additional-info
attributes:
label: Additional Information
description: "[optional] You may provide additional context for us to better understand how this issue occured."
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/command-request.md

This file was deleted.

5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Discord Server
url: https://discord.gg/etJNHCQ
about: Please ask hosting-related questions here before creating an issue.
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Feature Request
description: Suggest an idea for this project
title: "your feature request title"
labels: "feature request"
body:
- type: textarea
id: problem-relation
attributes:
label: Is your feature request related to a problem? Please elaborate.
description: A clear and concise description of what the problem is.
placeholder: eg. I'm always frustrated when...
validations:
required: true
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
validations:
required: true
- type: checkboxes
id: complications
attributes:
label: Does your solution involve any of the following?
options:
- label: Logviewer
- label: New config option
- type: textarea
id: alternatives
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
id: benefit
attributes:
label: Who will this benefit?
description: Does this feature apply to a great portion of users?
validations:
required: true
- type: textarea
id: additional-info
attributes:
label: Additional Information
description: "[optional] You may provide additional context or screenshots for us to better understand the need of the feature."
4 changes: 2 additions & 2 deletions .github/pull.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: "1"
rules:
- base: master
upstream: kyb3r:master
upstream: modmail-dev:master
mergeMethod: hardreset
- base: development
upstream: kyb3r:development
upstream: modmail-dev:development
mergeMethod: hardreset
42 changes: 42 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

name: Create and publish a Docker image

on:
push:
branches: ['master']

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
33 changes: 16 additions & 17 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,29 @@ on: [push, pull_request]

jobs:
code-style:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11']

# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest]
# python-version: [3.6, 3.7]
name: Python ${{ matrix.python-version }} on ubuntu-latest

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.7
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install bandit==1.6.2 pylint black==19.10b0
continue-on-error: true
- name: Bandit syntax check
run: bandit -r . -b .bandit_baseline.json
python -m pip install --upgrade pip pipenv
pipenv install --dev --system
# to refresh: bandit -f json -o .bandit_baseline.json -r .
# - name: Bandit syntax check
# run: bandit -r . -b .bandit_baseline.json
- name: Pylint
run: pylint ./bot.py cogs/*.py core/*.py --disable=import-error --exit-zero -r y
run: pylint ./bot.py cogs/*.py core/*.py --exit-zero -r y
continue-on-error: true
- name: Black
run: |
Expand Down
Loading