Skip to content

Commit 21f0cd8

Browse files
authored
Merge branch 'modmail-dev:master' into master
2 parents bbeff8f + 98cb126 commit 21f0cd8

24 files changed

+3256
-1273
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ LOG_URL=https://logviewername.herokuapp.com/
33
GUILD_ID=1234567890
44
OWNERS=Owner1ID,Owner2ID,Owner3ID
55
CONNECTION_URI=mongodb+srv://mongodburi
6+
DISABLE_AUTOUPDATES=true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
patreon: kyber
1+
buy_me_a_coffee: modmaildev

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body:
2020
- Heroku
2121
- Systemd
2222
- PM2
23-
- Patreon
23+
- Buy Me A Coffee / Patreon
2424
- Other
2525
validations:
2626
required: true

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,44 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66
This project mostly adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html);
77
however, insignificant breaking changes do not guarantee a major version bump, see the reasoning [here](https://github.com/modmail-dev/modmail/issues/319). If you're a plugin developer, note the "BREAKING" section.
88

9+
# v4.2.0
10+
11+
Upgraded discord.py to version 2.6.3, added support for CV2.
12+
Forwarded messages now properly show in threads, rather than showing as an empty embed.
13+
14+
### Fixed
15+
- Make Modmail keep working when typing is disabled due to an outage caused by Discord.
16+
- Resolved an issue where forwarded messages appeared as empty embeds.
17+
- Fixed internal message handling and restoration processes.
18+
- Eliminated duplicate logs and notes.
19+
- Addressed inconsistent use of `logkey` after ticket restoration.
20+
- Fixed issues with identifying the user who sent internal messages.
21+
- Solved an ancient bug where closing with words like `evening` wouldn't work.
22+
- Fixed the command from being included in the reply in rare conditions.
23+
24+
### Added
25+
Commands:
26+
* `snooze`: Initiates a snooze action.
27+
* `snoozed`: Displays snoozed items.
28+
* `unsnooze`: Reverses the snooze action.
29+
* `clearsnoozed`: Clears all snoozed items.
30+
31+
Configuration Options:
32+
* `max_snooze_time`: Sets the maximum duration for snooze.
33+
* `snooze_title`: Customizes the title for snooze notifications.
34+
* `snooze_text`: Customizes the text for snooze notifications.
35+
* `unsnooze_text`: Customizes the text for unsnooze notifications.
36+
* `unsnooze_notify_channel`: Specifies the channel for unsnooze notifications.
37+
* `thread_min_characters`: Minimum number of characters required.
38+
* `thread_min_characters_title`: Title shown when the message is too short.
39+
* `thread_min_characters_response`: Response shown to the user if their message is too short.
40+
* `thread_min_characters_footer`: Footer displaying the minimum required characters.
41+
42+
# v4.1.2
43+
44+
### Fixed
45+
- Members not caching correctly for large servers. ([PR #3365](https://github.com/modmail-dev/Modmail/pull/3365))
46+
947
# v4.1.1
1048

1149
### Fixed

Pipfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,27 @@ verify_ssl = true
77
bandit = ">=1.7.5"
88
black = "==23.11.0"
99
pylint = "==3.0.2"
10-
typing-extensions = "==4.8.0"
10+
tomli = "==2.2.1" # Needed for black on Python < 3.11
1111

1212
[packages]
13-
aiohttp = "==3.9.0"
13+
aiohttp = "==3.13.2"
14+
async-timeout = {version = "==5.0.1", markers = "python_version < '3.11'"} # Required by aiohttp
15+
typing-extensions = ">=4.12.2" # Required by aiohttp
1416
colorama = "==0.4.6"
15-
"discord.py" = {version = "==2.3.2", extras = ["speed"]}
17+
"discord.py" = {version = "==2.6.3", extras = ["speed"]}
1618
emoji = "==2.8.0"
1719
isodate = "==0.6.1"
18-
motor = "==3.3.2"
20+
motor = "==3.7.1"
1921
natural = "==0.2.0" # Why is this needed?
2022
packaging = "==23.2"
2123
parsedatetime = "==2.6"
22-
pymongo = {extras = ["srv"], version = "*"} # Required by motor
24+
dnspython = ">=2.8,<3" # Required by pymongo
25+
pymongo = ">=4.9,<5" # Required by motor
2326
python-dateutil = "==2.8.2"
2427
python-dotenv = "==1.0.0"
2528
uvloop = {version = ">=0.19.0", markers = "sys_platform != 'win32'"}
26-
lottie = {version = "==0.7.0", extras = ["pdf"]}
29+
lottie = {version = "==0.7.2", extras = ["pdf"]}
30+
setuptools = "*" # Needed for lottie
2731
requests = "==2.31.0"
2832

2933
[scripts]

Pipfile.lock

Lines changed: 1788 additions & 1039 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<br>
77

88
<a href="#">
9-
<img src="https://img.shields.io/badge/Latest%20Version-v4.1.0-7289da?style=for-the-badge&logo=data:image/gif;base64,R0lGODlhGAAYAPcAAAAAADQ+Yj5MdThCaEFOekNQfWt5e1lqfEdVhVpriVx1iVtsnFZpll1xlF1znFx5mGNtjGR7hWNzjGd5iWJunGNslmN0lGl1lGN5lWt7lWR0nGp1nWR5nGt8nHJ9l3J9jFxto1xtqlZqqF5zpF15pV10rVx5q1Z2ql1us150s114sV50uVd1smJupGNurGN0pGp1pGR6o2t7o2F0rml0rGR5rGt8q3J9pGNus2Fvu2Bzs2p2smR5s2t7tGF0u2N6vGp7u2l1uXJ+uGJ1wWV7w2l+xWl+yl5zwHWDiWyCmHODnHiGmHSLkW2CpGuEqnSCpHqMo3ODrHWKrXyMq3iHp3yTqGyEtWqFunKDs3uLtHSGvXSMvHuMu3eItnyTs3yTu3iUuW+RsV+ApmuCxG2Dy22LxnSMxHuMxHGGzXSLzXqLzXWFxXyTw3uSy3WSx26E0W+N2m+L1XKG03SL1XmL1HOL2HmL23WF2XiS1m+QyHOK4XmL4XaH4nGM5ImXm4WOlJSjnoOOq4OOpYSUrImXqJOcqYONt4OUtIybtIOUu4ycvImYt5OcuIyiqZekqYyiupOjvJurvJimtp+yvqKruae2ua23trLCucPHvIOMxoOUxIuaw4eYyJKbyISW1YiW0o2kyJWlxJqpxZWkzJury5aoxp6xxZ2zyZio1Jyy2Yuk0aOsyKOyxKOzzKy8zKq2yLO7xqOr1KSz1Ku706W026y73Ki21bK716u75LS95KSu4Zyx6bPDzLjGx63B2LPD1LTE3LvL3brI17/S2bbKzrTE47rF47zM5L3M67bH577R5L7R67zK8rjM8MLM3MPK1sTT3crU3MjW2dLZ2srUy8PN5MTO68nP68jL48TS5MnT5cbR68jS7M3b7Mva5dTb6MTO8srO8szF8MXR8snS8c3a8cnY+NXb9tDL7dnm6dzk8tro99Pq9uTp6+r17fr77eTr/efr+Oz09OXz/Ov0/e37/uj39fX19fX89fz+9vP1/fX9/f7//vr2/ODl4sK75yH5BAEAAAAALAAAAAAYABgAAAj/AAEAmFOnoMGDCAvGmRNHYMKHEOdIhEgRIcGKGDMeTJVO00WNBj194/frFik5IOvgqdaP371N26xpefORYq57/HI+s7Vtmy0eKCmmapcz575FPXt+SfHmociiRae1SroNWIoVTQ2uxAk15yJg1awl7ZSCaUE82uRxhTpt1TNXq0Ip2pSobIqCc0iVoqsI0ipXr1bhywfVXxYdiA3Sourz2dqc8lbNQJz4bDWqix73E7ZjhgrKOjYmvfWLbZcZqCdTPjjHGLdtibi2U5Q6NWiEqqq64ifvVe3at1nX2tTuWQ/QyIMfxHOGi+rkyeMklPMDuvWaBqlbj469IPUU2ykPCOw+53t4AAEBADs=">
9+
<img src="https://img.shields.io/badge/Latest%20Version-v4.2.0-7289da?style=for-the-badge&logo=data:image/gif;base64,R0lGODlhGAAYAPcAAAAAADQ+Yj5MdThCaEFOekNQfWt5e1lqfEdVhVpriVx1iVtsnFZpll1xlF1znFx5mGNtjGR7hWNzjGd5iWJunGNslmN0lGl1lGN5lWt7lWR0nGp1nWR5nGt8nHJ9l3J9jFxto1xtqlZqqF5zpF15pV10rVx5q1Z2ql1us150s114sV50uV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qix73E7ZjhgrKOjYmvfWLbZcZqCdTPjjHGLdtibi2U5Q6NWiEqqq64ifvVe3at1nX2tTuWQ/QyIMfxHOGi+rkyeMklPMDuvWaBqlbj469IPUU2ykPCOw+53t4AAEBADs=">
1010
</a>
1111

1212
<br>
@@ -23,8 +23,8 @@
2323
<img src="https://img.shields.io/discord/1079074933008781362.svg?label=Discord&logo=Discord&colorB=7289da&style=for-the-badge" alt="Support">
2424
</a>
2525

26-
<a href="https://patreon.com/kyber">
27-
<img src="https://img.shields.io/badge/patreon-donate-orange.svg?style=for-the-badge&logo=Patreon" alt="Python 3.8">
26+
<a href="https://buymeacoffee.com/modmaildev">
27+
<img src="https://img.shields.io/badge/buymeacoffee-donate-ff813f.svg?style=for-the-badge&logo=buy-me-a-coffee" alt="Buy Me A Coffee">
2828
</a>
2929

3030
<a href="https://www.python.org/downloads/">
@@ -48,7 +48,7 @@
4848

4949
Modmail is similar to Reddit's Modmail, both in functionality and purpose. It serves as a shared inbox for server staff to communicate with their users in a seamless way.
5050

51-
This bot is free for everyone and always will be. If you like this project and would like to show your appreciation, you can support us on **[Patreon](https://www.patreon.com/kyber)**, cool benefits included!
51+
This bot is free for everyone and always will be. If you like this project and would like to show your appreciation, you can support us on **[Buy Me A Coffee](https://buymeacoffee.com/modmaildev)**, cool benefits included!
5252

5353
For up-to-date setup instructions, please visit our [**documentation**](https://docs.modmail.dev/installation) page.
5454

@@ -72,7 +72,7 @@ Our Logviewer will save the threads so you can view previous threads through the
7272
* When you close a thread, Modmail will generate a log link and post it to your log channel.
7373
* Native Discord dark-mode feel.
7474
* Markdown/formatting support.
75-
* Login via Discord to protect your logs ([premium Patreon feature](https://patreon.com/kyber)).
75+
* Login via Discord to protect your logs ([premium feature](https://buymeacoffee.com/modmaildev/membership)).
7676
* See past logs of a user with `?logs`.
7777
* Searchable by text queries using `?logs search`.
7878

@@ -90,15 +90,15 @@ There are a number of options for hosting your very own dedicated Modmail bot.
9090

9191
Visit our [**documentation**](https://docs.modmail.dev/installation) page for detailed guidance on how to deploy your Modmail bot.
9292

93-
### Patreon Hosting
93+
### Paid Hosting
9494

95-
If you don't want the trouble of renting and configuring your server to host Modmail, we got a solution for you! We offer hosting and maintenance of your own, private Modmail bot (including a Logviewer) through [**Patreon**](https://patreon.com/kyber).
95+
If you don't want the trouble of renting and configuring your server to host Modmail, we got a solution for you! We offer hosting and maintenance of your own, private Modmail bot (including a Logviewer) through [**Buy Me A Coffee**](https://buymeacoffee.com/modmaildev/membership).
9696

9797
## FAQ
9898

9999
**Q: Where can I find the Modmail bot invite link?**
100100

101-
**A:** Unfortunately, due to how this bot functions, it cannot be invited. The lack of an invite link is to ensure an individuality to your server and grant you full control over your bot and data. Nonetheless, you can quickly obtain a free copy of Modmail for your server by following our [**documentation**](https://docs.modmail.dev/installation) steps or subscribe to [**Patreon**](https://patreon.com/kyber).
101+
**A:** Unfortunately, due to how this bot functions, it cannot be invited. The lack of an invite link is to ensure an individuality to your server and grant you full control over your bot and data. Nonetheless, you can quickly obtain a free copy of Modmail for your server by following our [**documentation**](https://docs.modmail.dev/installation) steps or subscribe to [**Buy Me A Coffee**](https://buymeacoffee.com/modmaildev/membership).
102102

103103
**Q: Where can I find out more info about Modmail?**
104104

@@ -147,27 +147,26 @@ Advertise Your Server:
147147
</a>
148148
<br>
149149
<br>
150-
Help Us • Help Other's:
150+
Discord Advice Center:
151151
<br>
152-
<a href='https://discord.gg/5yQCFzY6HU'>
153-
<img height=100 src='https://i.imgur.com/Gi3jxeH.gif' style='margin:5px'>
152+
<a href='https://discord.gg/zmwZy5fd9v'>
153+
<img height=100 src='https://i.imgur.com/1hrjcHd.png' style='margin:5px'>
154154
</a>
155155
<br>
156156
<br>
157-
Discord Advice Center:
157+
Kistó Bakery:
158158
<br>
159-
<a href='https://discord.gg/zmwZy5fd9v'>
160-
<img height=100 src='https://i.imgur.com/1hrjcHd.png' style='margin:5px'>
159+
<a href='https://www.roblox.com/communities/9318596/Kist#!/about'>
160+
<img height=100 src='https://i.imgur.com/ck81JiJ.jpeg' style='margin:5px'>
161161
</a>
162162

163-
164-
Become a sponsor on [Patreon](https://patreon.com/kyber).
163+
Become a sponsor on [Buy Me A Coffee](https://buymeacoffee.com/modmaildev/membership).
165164

166165
## Contributing
167166

168167
Contributions to Modmail are always welcome, whether it be improvements to the documentation or new functionality, please feel free to make the change. Check out our [contributing guidelines](https://github.com/modmail-dev/modmail/blob/master/.github/CONTRIBUTING.md) before you get started.
169168

170-
If you like this project and would like to show your appreciation, support us on **[Patreon](https://www.patreon.com/kyber)**!
169+
If you like this project and would like to show your appreciation, support us on **[Buy Me A Coffee](https://buymeacoffee.com/modmaildev)**!
171170

172171
## Beta Testing
173172

SPONSORS.json

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -91,23 +91,6 @@
9191
]
9292
}
9393
},
94-
{
95-
"embed": {
96-
"title": "Advertise Your Server",
97-
"description": "Advertise Your Server is the leading advertising and growth Discord Server. With over 60,000 members we can help grow your community with our range of services.\n\n__**Advertise Your Server offers everything you need to grow and find servers:**__\n\n:chart_with_upwards_trend: **Discord Growth Experts** to give you advice on how to __grow your server.__ (server/advert reviews, growth tips)\n:dividers: Over 40 different channels for **different server categories.**\n:robot: Our own __custom__ **bump bot.** (Liam)\n:bar_chart: Currently the __BIGGEST__ advertising server on Discord.\n:computer: Our own server __Listing Site__!\n:ticket: Small Servers Program for servers with less than 300 members.\n:dvd: Weekly Podcast, Blog, Email Newsletter and YouTube Tutorials. \n\nhttps://discord.gg/zP8KcF4VQz\nhttps://aysdiscord.com",
98-
"author": {
99-
"name": "Advertise Your Server",
100-
"icon_url": "https://cdn.discordapp.com/attachments/563522692418895872/907067815486427176/logo4.png"
101-
},
102-
"color": 431075,
103-
"footer": {
104-
"text": "Grow Your Discord Server"
105-
},
106-
"image": {
107-
"url": "https://cdn.discordapp.com/attachments/472811257913933834/907068966311166043/unknown_2.png"
108-
}
109-
}
110-
},
11194
{
11295
"embed": {
11396
"footer": {
@@ -129,33 +112,6 @@
129112
"title": "uncommon community"
130113
}
131114
},
132-
{
133-
"embed": {
134-
"author": {
135-
"name": "Help us • Help Others"
136-
},
137-
"title": "Join Today",
138-
"url": "https://discord.gg/5yQCFzY6HU",
139-
"description": "At Help Us • Help Others, we accept as true with inside the transformative electricity of cooperation and kindness. Each one people has the capability to make a meaningful impact by means of helping and caring for others. Whether you want assistance or want to offer it, this is the right region for you!",
140-
"fields": [
141-
{
142-
"name": "What we offer:",
143-
"value": "`🎬` - Active community\n`👮` - Active staff around the globe! \n`🛜` - 40+ Advertising channels to grow your socials!\n`💎` - Boosting Perks\n`🎉` - Event's monthly especially bank holiday roles!!\n`🔢` - Unique levelling systems\n`📞` - Multiple voice channels including gaming!\n`🎁` - Exclusive giveaways!"
144-
},
145-
{
146-
"name": "We Are Hiring",
147-
"value": "`🔵` - Moderators\n`🔵` - Human Resources\n`🔵` - Community Team\n`🔵` - Partnership Manager\n`🔵` - Growth Manager\n`🚀` Much more to come!\n\n\nJoin Today!"
148-
}
149-
],
150-
"image": {
151-
"url": "https://cdn.discordapp.com/attachments/1218338794416246874/1243635366326567002/AD_animated.gif"
152-
},
153-
"color": 45300,
154-
"footer": {
155-
"text": "Help Us • Help Others"
156-
}
157-
}
158-
},
159115
{
160116
"embed": {
161117
"description": "> Be apart of our community as we start to grow! and embark on a long journey.\n——————————————————-\n**What we offer?**\n\n➺〚🖌️〛Custom Liveries \n➺〚❤️〛Friendly and Growing community.\n➺〚🤝〛Partnerships.\n➺〚🎮〛Daily SSUs. \n➺〚🚨〛Great roleplays.\n➺〚💬〛Kind and Professional staff\n➺〚🎉〛Giveaways!!! \n——————————————————-\n**Emergency Services**\n\n➺〚🚔〛NY Police Force\n➺〚🚒〛Fire & Emergency NY\n➺〚🚧〛NY department of transportation \n\n——————————————————-\n**Whitelisted**\nComing soon!\n——————————————————-\n**What are we looking for!**\n\n➺〚💬〛More members\n➺〚⭐〛Staff Members - **WE'RE HIRING!**\n➺〚🤝〛Partnerships\n➺〚💎〛Boosters\n——————————————————\n\n**[Join now](https://discord.com/invite/qt62qSnKVa)**",
@@ -171,12 +127,9 @@
171127
},
172128
{
173129
"embed": {
174-
"title": "Pixelmark TM PLC",
175-
"description": "Hi there! Welcome to PixelMark PLC! \nI'm so glad you're here. I started PixelMark PLC on May 24, 2023. Our team is dedicated to providing top-quality products and a great shopping experience. But more than that, PixelMark PLC is a community. We're here to share, create, and have fun together. Thanks for joining us on this exciting journey! Our current Goal is to reach 100 Human Members, you can help us achieve that Goal by joining or/and inviting your Friends!\n\nBest regards, \n*Felixpro202110 / Chief Executive Officer (Founder)* \n-----------------------------------------------------------------------\n> https://discord.gg/RVzNVRaFeE\n> https://www.roblox.com/groups/16031525/PixelMark-PLC",
176-
"color": 10634504,
177-
"image": {
178-
"url": "https://imgur.com/iTl1dXm.png"
179-
}
130+
"title": "CityStore PLC",
131+
"description": "*Your Retail Journey*\n*\"Better choice and better value in food, fashion & homewares.\"*\n\n\n**------------------------------------------**\n*__About us__*\nSupermarket, CityStore PLC! Attend a training to become staff!\n\nThis game is currently in V3\n\nWe have a training Centre and applications center!\n\n**------------------------------------------**\n\n> *❤️ Don't hesitate! Dive into the excitement today by joining our vibrant community on Discord. Experience our unique perspective and become an integral part of our group. Your **journey** with us promises to be unforgettable no regrets, only great memories await! ❤️*\n\n*We hope to see you. *\n\n*Signed,*\n**CityStore PLC**\n> Discord: https://discord.gg/yjFQb5mrSk\n> Roblox Group: https://www.roblox.com/groups/32819373/CityStore-PLC#!/about\n\nJoin us now and become apart of Citystore PLC community! 🎉",
132+
"color": 15523550
180133
}
181134
}
182135
]

0 commit comments

Comments
 (0)