Skip to content

Commit

Permalink
Added Autoreact plugin (modmail-dev#3285)
Browse files Browse the repository at this point in the history
* Added Autoreact plugin

* Update changelog

* black format (from a different pr's mistake)

---------

Co-authored-by: Taku <45324516+Taaku18@users.noreply.github.com>
  • Loading branch information
martinbndr and Taaku18 committed Jul 15, 2023
1 parent 40dff61 commit 5170035
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ however, insignificant breaking changes do not guarantee a major version bump, s
- `?log key <key>` to retrieve the log link and view a preview using a log key. ([PR #3196](https://github.com/modmail-dev/Modmail/pull/3196))
- `REGISTRY_PLUGINS_ONLY`, environment variable, when set, restricts to only allow adding registry plugins. ([PR #3247](https://github.com/modmail-dev/modmail/pull/3247))
- `DISCORD_LOG_LEVEL` environment variable to set the log level of discord.py. ([PR #3216](https://github.com/modmail-dev/Modmail/pull/3216))
- New registry plugin: [`autoreact`](https://github.com/martinbndr/kyb3r-modmail-plugins/tree/master/autoreact).

### Changed
- Repo moved to https://github.com/modmail-dev/modmail.
Expand All @@ -32,8 +33,6 @@ however, insignificant breaking changes do not guarantee a major version bump, s

### Internal
- Renamed `Bot.log_file_name` to `Bot.log_file_path`. Log files are now created at `temp/logs/modmail.log`. ([PR #3216](https://github.com/modmail-dev/Modmail/pull/3216))

### Internal
- `ConfigManager.get` no longer accepts two positional arguments: the `convert` argument is now keyword-only.

# v4.0.2
Expand Down
2 changes: 1 addition & 1 deletion cogs/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ async def parse_user_input(self, ctx, plugin_name, check_version=False):
if self.bot.config.get("registry_plugins_only"):
embed = discord.Embed(
description="This plugin is not in the registry. To install this plugin, "
"you must set `REGISTRY_PLUGINS_ONLY=no` or remove this key in your .env file.",
"you must set `REGISTRY_PLUGINS_ONLY=no` or remove this key in your .env file.",
color=self.bot.error_color,
)
await ctx.send(embed=embed)
Expand Down
9 changes: 9 additions & 0 deletions plugins/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
"icon_url": "https://github.com/Jerrie-Aries.png",
"thumbnail_url": "https://github.com/Jerrie-Aries/modmail-plugins/master/.static/announcement.jpg"
},
"autoreact": {
"repository": "martinbndr/kyb3r-modmail-plugins",
"branch": "master",
"description": "Automatically reacts with emojis in certain channels.",
"bot_version": "4.0.0",
"title": "Autoreact",
"icon_url": "https://github.com/martinbndr/kyb3r-modmail-plugins/master/autoreact/logo.png",
"thumbnail_url": "https://github.com/martinbndr/kyb3r-modmail-plugins/master/autoreact/logo.png"
},
"giveaway": {
"repository": "Jerrie-Aries/modmail-plugins",
"branch": "master",
Expand Down

0 comments on commit 5170035

Please sign in to comment.