Skip to content

Commit

Permalink
add message_content intent, bump disnake requirement
Browse files Browse the repository at this point in the history
  • Loading branch information
ihaveamac committed Feb 15, 2023
1 parent 4e87986 commit 11f01ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
disnake>=2.4
disnake>=2.8
4 changes: 2 additions & 2 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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', '.')
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tag.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 11f01ca

Please sign in to comment.