-
-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into uptime-datetime
- Loading branch information
Showing
83 changed files
with
1,906 additions
and
909 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
name: Bug report | ||
description: Create a bug report | ||
labels: | ||
- bug | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Thank you for reporting a bug! | ||
Before filling this, try to contact us about the issue you have. | ||
### If you are using the official Ballsdex bot | ||
Join the [official Discord server](https://discord.gg/ballsdex) and create a post in the | ||
[`bug-reports` forum](https://discord.com/channels/1049118743101452329/1049622402419675206). | ||
### If you are hosting your own bot | ||
Join the [developers server](https://discord.gg/PKKhee4fvy) and ask for help in the | ||
`#help` channel. | ||
--- | ||
If you are confident that you have found a bug, or were told to fill an issue, please fill | ||
in the following information. | ||
- type: dropdown | ||
id: category | ||
attributes: | ||
label: Category | ||
description: Where does the bug comes from | ||
multiple: true | ||
options: | ||
- Django (admin panel and more) | ||
- Admin (/admin commands) | ||
- Balls (/balls command) | ||
- Config (/config command) | ||
- Countryballs (spawn algorithm and countryball catching) | ||
- Info (/about and /help commands) | ||
- Players (/player command) | ||
- Trade (/trade command) | ||
- Core (main code, autocompletions, models, anything you may find common to all commands) | ||
- Other | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the bug is. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: Steps to reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: Expected behavior | ||
description: A clear and concise description of what you expected to happen. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Screenshots | ||
description: If relevant, include screenshots showing the problems. | ||
placeholder: You can drag and drop images, or paste them. | ||
validations: | ||
required: false | ||
|
||
- type: input | ||
id: version | ||
attributes: | ||
label: Version | ||
description: If self-hosting, inlcude the version of the bot you are using | ||
placeholder: 2.24.2 | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
id: stack-trace | ||
attributes: | ||
label: Error stack trace | ||
description: > | ||
If self hosting and the bot produces an error, please copy the whole error | ||
from your logs and paste them here | ||
render: python traceback | ||
validations: | ||
required: false |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Feature request | ||
description: Suggest an idea for Ballsdex | ||
labels: | ||
- feature request | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Thank you for suggesting new features! | ||
Before filling this, try to contact us about the idea you have. | ||
### If you are using the official Ballsdex bot | ||
Join the [official Discord server](https://discord.gg/ballsdex) and create a post in the | ||
[`suggestions` forum](https://discord.com/channels/1049118743101452329/1049164568066281472). | ||
### If you are hosting your own bot | ||
Join the [developers server](https://discord.gg/PKKhee4fvy) and create a post in the | ||
`suggestions` forum. | ||
--- | ||
Then, please fill the following information. | ||
- type: dropdown | ||
id: selfhosting | ||
attributes: | ||
label: Self-hosting | ||
description: Are you using the official Ballsdex bot or hosting your own instance? | ||
options: | ||
- Official Ballsdex bot | ||
- Self-hosting | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: description | ||
attributes: | ||
label: Description | ||
description: A clear and concise description of what the feature is. | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
patreon: retke |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### Description of the changes | ||
|
||
<!-- | ||
Describe the changes you have made in this pull request. | ||
Feel free to include screenshots of the new feature if applicable! | ||
If the changes resolve an issue, please include "Resolves #XX" where "XX" is the issue number. | ||
--> | ||
|
||
### Were the changes in this PR tested? | ||
|
||
<!-- | ||
Answer yes or no if you tested your changes locally. | ||
If your change is only grammatical and doesn't change any logic, choose "Yes". | ||
--> | ||
Yes | ||
No | ||
|
||
<!-- | ||
If the change you introduced is big enough, make a list of checkboxes with all different | ||
cases to test. You can also request additional help for testing thoroughly. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from typing import TYPE_CHECKING, Callable | ||
|
||
if TYPE_CHECKING: | ||
from django.http import HttpRequest, HttpResponse | ||
|
||
|
||
class SecurityHeadersMiddleware: | ||
def __init__(self, get_response: Callable[["HttpRequest"], "HttpResponse"]): | ||
self.get_response = get_response | ||
|
||
def __call__(self, request: "HttpRequest") -> "HttpResponse": | ||
response = self.get_response(request) | ||
response["Content-Security-Policy"] = ( | ||
"default-src 'self' http://*.discordapp.com http://discord.com; frame-ancestors 'self'" | ||
) | ||
response["X-XSS-Protection"] = "1; mode=block" | ||
response["X-Robots-Tag"] = "none" | ||
response["Referrer-Policy"] = "same-origin" | ||
return response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.