-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
955 additions
and
274 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Check for a news entry | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, labeled, unlabeled, reopened] | ||
|
||
jobs: | ||
check-news: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks out the repository in the current folder. | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Set up the right version of Python | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.9' | ||
|
||
# Install the required dependencies for using the feature, we aren't using cache here | ||
# as the number is relatively small and having cache would be complete redundancy. | ||
- name: Install dependencies using pip | ||
run: | | ||
pip install tomli requests | ||
# Run the script for checking if there is a news entry for the current PR | ||
- name: Check for a news entry in the news/next | ||
run: | | ||
python -m scripts.news.check_news_workflow ${{ github.event.pull_request.number }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## 0.2.0 (2021-09-29) | ||
|
||
--- | ||
|
||
### Features | ||
|
||
- Interaction Paginator that uses discord buttons (#50) | ||
- docker-compose.yml (#13) | ||
- Running the bot after configuring the env vars is now as simple as `docker-compose up` | ||
- Automatic docker image creation: `ghcr.io/discord-modmail/modmail` (#19) | ||
- Dockerfile support for all supported hosting providers. (#58) | ||
- Errors no longer happen silently and notify the user when they make a mistake. (#77) | ||
|
||
### Improvements | ||
|
||
- Refactored bot creation and bot running (#56) | ||
- Running the bot is still the same method, but it loads extensions and plugins now. | ||
- `bot.start()` can also be used if already in a running event loop. Keep in mind using it will require | ||
handling loop errors, as run() does this automatically. | ||
|
||
### Internal | ||
|
||
- Code style: two blank lines after imports instead of one. (#70) | ||
|
||
|
||
## 0.1.0 (2021-08-13) | ||
|
||
--- | ||
|
||
### Feature | ||
|
||
- Bot modes to determine behavior. Multiple can be applied at once. (#43) | ||
- `PROD`: the default mode, no dev extensions or dev plugins load | ||
- `DEVELOP`: the bot developer mode, most useful for people adding features to modmail | ||
- Enables the extension_manager extension. | ||
- `PLUGIN_DEV`: the plugin developer mode, useful for enabling plugin specific features | ||
- This is not used yet. | ||
- Extension loading system (#43) | ||
- scans for extensions in the `modmail/extensions` folder and loads them if they are of the right format. | ||
- all extensions must be loadable as a module, which means they must have `__init__.py` files in their directories. | ||
- Plugin loading system (#43) | ||
- scans for plugins in the `modmail/plugins` folder and loads them. | ||
- Unlike extensions, plugins and their respective folders do not need to have `__init__.py` files and are allowed to be symlinks. | ||
- Extension management commands (#43) | ||
- load, reload, unload, list, refresh commands for dealing with extensions | ||
- Run the `ext` command for more details when bot is in `DEVELOP` mode. | ||
- Plugin management commands (#43) | ||
- load, reload, unload, list, refresh commands for dealing with plugins | ||
- Run the `plugins` command for more details. | ||
- Extension metadata (#43) | ||
- used to determine if a cog should load or not depending on the bot mode | ||
- Plugin helper file (#43) | ||
- `modmail/plugin_helpers.py` contains several helpers for making plugins | ||
- `PluginCog` | ||
- `ModmailBot`, imported from `modmail.bot` | ||
- `ModmailLogger`, imported from `modmail.log` | ||
- Meta Cog (#43) | ||
- **NOTE**: The commands in this cog are not stabilized yet and should not be relied upon. | ||
- Prefix command for getting the set prefix. Most useful by mentioning the bot. | ||
- Uptime command which tells the end user how long the bot has been online. | ||
- Ping command to see the bot latency. | ||
- Guide on how to contribute to modmail, see \[CONTRIBUTING.md\] <!-- #TODO: Make this a link --> | ||
- Start a Changelog | ||
|
||
### Bugfix | ||
|
||
- Make the bot `http_session` within an event loop. |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
All your changelogs for upcoming release! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Officially support python 3.10 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Officially support windows and macos |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Added Dispatcher system, although it is not hooked into important features like thread creation yet. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Add a custom changelogger, inspired from the one at python/cpython |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
Embedified the meta commands so they have a nicer UI |
Oops, something went wrong.