Skip to content

Commit 74fdc9d

Browse files
committed
Merge branch 'master' into development
2 parents ff9554e + af4e149 commit 74fdc9d

File tree

5 files changed

+85
-39
lines changed

5 files changed

+85
-39
lines changed

CONTRIBUTING.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,25 @@ If you are proposing new features, please discuss them with us in the [developme
1313
## We Develop with Github
1414
We use github to host code, to track issues and feature requests, as well as accept pull requests.
1515

16-
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
17-
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
16+
## We Use [Git Flow](https://atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow)
17+
![Simple Image Of A Git Flow Workflow](https://nvie.com/img/[email protected])
18+
When contributing to this project please make sure you follow this and name your branches appropriately!
1819

19-
1. Fork the repo and create your branch from `master`.
20+
## All Code Changes Happen Through Pull Requests
21+
Make sure you know how Git Flow works before contributing!
22+
Pull requests are the best way to propose changes to the codebase. We actively welcome your pull requests:
23+
24+
1. Fork the repo and create your branch from `master` or `development` according to Git Flow.
2025
2. If you've added code that should be tested, add tests.
2126
3. If you've changed APIs, update the documentation.
2227
4. Ensure the test suite passes.
2328
5. Make sure your code lints.
2429
6. Issue that pull request!
2530

26-
## Any contributions you make will be under the MIT Software License
27-
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
31+
## Any contributions you make will be under the GNU Affero General Public License v3.0
32+
In short, when you submit code changes, your submissions are understood to be under the same [GNU Affero General Public License v3.0](https://www.gnu.org/licenses/agpl-3.0.en.html) that covers the project. Feel free to contact the maintainers if that's a concern.
2833

29-
## Report bugs using Github's [issues](https://github.com/kyb3r/modmail/issues)
34+
## Report bugs using [Github Issues](https://github.com/kyb3r/modmail/issues)
3035
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/kyb3r/modmail/issues/new); it's that easy!
3136

3237
## Write bug reports with detail, background, and sample code

SPONSORS.json

Lines changed: 66 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,67 @@
1-
[{
2-
"embed": {
3-
"description": "This is a youtube channel that provides high quality reddit content. Videos are uploaded regularly so you are never out of funny, interesting or even creepy content!",
4-
"color": 15114050,
5-
"footer": {
6-
"icon_url": "https://i.imgur.com/fvNKUks.png",
7-
"text": "I am a robot, son of Daniel (UK)"
8-
},
9-
"thumbnail": {
10-
"url": "https://i.imgur.com/WyzaPKY.png"
11-
},
12-
"author": {
13-
"name": "Sir Reddit",
14-
"url": "https://www.youtube.com/channel/UCgSmBJD9imASmJRleycTCwQ?sub_confirmation=1",
15-
"icon_url": "https://i.imgur.com/WyzaPKY.png"
16-
},
17-
"fields": [
18-
{
19-
"name": "Subscribe!",
20-
"value": "[**Click Here**](https://www.youtube.com/channel/UCgSmBJD9imASmJRleycTCwQ?sub_confirmation=1)"
21-
},
22-
{
23-
"name": "Discord Server!",
24-
"value": "[**Click Here**](https://discord.gg/V8ErqHb)"
1+
[
2+
{
3+
"embed":{
4+
"description":"This is a youtube channel that provides high quality reddit content. Videos are uploaded regularly so you are never out of funny, interesting or even creepy content!",
5+
"color":15114050,
6+
"footer":{
7+
"icon_url":"https://i.imgur.com/fvNKUks.png",
8+
"text":"I am a robot, son of Daniel (UK)"
9+
},
10+
"thumbnail":{
11+
"url":"https://i.imgur.com/WyzaPKY.png"
12+
},
13+
"author":{
14+
"name":"Sir Reddit",
15+
"url":"https://www.youtube.com/channel/UCgSmBJD9imASmJRleycTCwQ?sub_confirmation=1",
16+
"icon_url":"https://i.imgur.com/WyzaPKY.png"
17+
},
18+
"fields":[
19+
{
20+
"name":"Subscribe!",
21+
"value":"[**Click Here**](https://www.youtube.com/channel/UCgSmBJD9imASmJRleycTCwQ?sub_confirmation=1)"
22+
},
23+
{
24+
"name":"Discord Server!",
25+
"value":"[**Click Here**](https://discord.gg/V8ErqHb)"
26+
}
27+
]
2528
}
26-
]
27-
}
28-
}]
29+
},
30+
{
31+
"embed":{
32+
"title":"Hey there! ",
33+
"description":"Nice to see you here! u can support us by subscribing on youtube -> [Youtube](https://www.youtube.com/user/RoomieOfficial) <-and also join our discord! [Discord](https://discord.gg/qdujXC8)",
34+
"url":"https://discord.gg/qdujXC8",
35+
"color":13003681,
36+
"footer":{
37+
"icon_url":"https://imgur.com/Mrc9pLd.gif",
38+
"text":"footer text"
39+
},
40+
"thumbnail":{
41+
"url":"https://imgur.com/Mrc9pLd.gif"
42+
},
43+
"image":{
44+
"url":"https://imgur.com/ZUFiL6b.gif"
45+
},
46+
"author":{
47+
"name":"Roomieofficial",
48+
"url":"https://discord.gg/qdujXC8",
49+
"icon_url":"https://imgur.com/6hBkt7Z.png"
50+
},
51+
"fields":[
52+
{
53+
"name":"What is all this about🤔 ",
54+
"value":"We are mainly focused on everything that has anything to do with music or singing! "
55+
},
56+
{
57+
"name":"Youtube🙄",
58+
"value":"U will get great content if you follow our [Youtube](https://www.youtube.com/user/RoomieOfficial) with weekly uploads"
59+
},
60+
{
61+
"name":"Discord😁",
62+
"value":"Make sure to join our [Discord](https://discord.gg/qdujXC8) We have weekly events, 24/7 chats and more! "
63+
}
64+
]
65+
}
66+
}
67+
]

app.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"required": true
1313
},
1414
"OWNERS": {
15-
"description": "Comma separated user IDs of people that are allowed to use owner only commands. (eval and update).",
15+
"description": "Comma separated user IDs of people that are allowed to use owner only commands. (eval).",
1616
"required": true
1717
},
1818
"MONGO_URI": {

cogs/modmail.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,8 @@ async def block(
10331033

10341034
mention = getattr(user, "mention", f"`{user.id}`")
10351035

1036+
moderator = ctx.author.name
1037+
10361038
if str(user.id) in self.bot.blocked_whitelisted_users:
10371039
embed = discord.Embed(
10381040
title="Error",
@@ -1042,18 +1044,18 @@ async def block(
10421044
return await ctx.send(embed=embed)
10431045

10441046
if after is not None:
1045-
reason = after.arg
1047+
reason = f"{after.arg} by {moderator}"
10461048
if reason.startswith("System Message: "):
10471049
raise commands.BadArgument(
10481050
"The reason cannot start with `System Message:`."
10491051
)
10501052
if "%" in reason:
10511053
raise commands.BadArgument('The reason contains illegal character "%".')
10521054
if after.dt > after.now:
1053-
reason = f"{reason} %{after.dt.isoformat()}%"
1055+
reason = f"{reason} %{after.dt.isoformat()}% by {moderator}"
10541056

10551057
if not reason:
1056-
reason = None
1058+
reason = f"Blocked by {moderator}"
10571059

10581060
extend = f" for `{reason}`" if reason is not None else ""
10591061
msg = self.bot.blocked_users.get(str(user.id))
@@ -1067,7 +1069,7 @@ async def block(
10671069
):
10681070
if str(user.id) in self.bot.blocked_users:
10691071

1070-
old_reason = msg.strip().rstrip(".") or "no reason"
1072+
old_reason = msg.strip().rstrip(".") or f"Blocked by {moderator}"
10711073
embed = discord.Embed(
10721074
title="Success",
10731075
description=f"{mention} was previously blocked for "

runtime.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
python-3.7.3
1+
python-3.7.4

0 commit comments

Comments
 (0)