From 11f01caeefb597eb636d9226883a58eeeee8b023 Mon Sep 17 00:00:00 2001 From: Ian Burgwin Date: Tue, 14 Feb 2023 17:18:21 -0800 Subject: [PATCH] add message_content intent, bump disnake requirement --- README.md | 2 +- requirements.txt | 2 +- run.py | 4 ++-- tag.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8ba1c90..8e1a74e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Simple mod-mail system for Discord. See `config.ini.example` for configuration, copy to `config.ini` to use. -Python 3.6 or later is required. discord.py 1.7 or later is required. +Python 3.6 or later is required. disnake 2.8 or later is required. Command usage to reply is only limited to the channel used for mod-mail, and not to users with specific roles. Don't allow everyone to send messages to the mod-mail channel because there is no role-check. diff --git a/requirements.txt b/requirements.txt index e23a96c..63d5ed0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -disnake>=2.4 +disnake>=2.8 diff --git a/run.py b/run.py index 9f6fb12..8ee82e1 100755 --- a/run.py +++ b/run.py @@ -17,7 +17,7 @@ from typing import List, Optional, Tuple -version = '1.3.12' +version = '1.3.13' is_docker = environ.get('IS_DOCKER', 0) data_dir = environ.get('MODMAIL_DATA_DIR', '.') @@ -57,7 +57,7 @@ post_startup_message = config['Main'].getboolean('post_startup_message', fallback=True) -intents = disnake.Intents(guilds=True, members=True, messages=True, dm_typing=True) +intents = disnake.Intents(guilds=True, members=True, messages=True, message_content=True, dm_typing=True) client = disnake.Client(activity=disnake.Game(name=config['Main']['playing']), max_messages=100, intents=intents) client.channel: disnake.TextChannel diff --git a/tag.sh b/tag.sh index e16e26b..90b16b0 100755 --- a/tag.sh +++ b/tag.sh @@ -1,5 +1,5 @@ #!/bin/sh -for f in 1 1.3 1.3.12 +for f in 1 1.3 1.3.13 do echo "Tagging latest -> $f" docker tag ianburgwin/discord-mod-mail:latest ianburgwin/discord-mod-mail:$f