Skip to content

Commit b3e249b

Browse files
committed
chore: Initialize repository.
0 parents  commit b3e249b

File tree

11 files changed

+458
-0
lines changed

11 files changed

+458
-0
lines changed

.gitattributes

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

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# VSCode
2+
.vscode/**
3+
.vscode-test/**
4+
5+
#Testing
6+
*.py
7+
*.vsix

.vscodeignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# VSCode
2+
.vscode/**
3+
.vscode-test/**
4+
5+
# Git
6+
.gitattributes
7+
.gitignore
8+
.github/**
9+
assets/**
10+
11+
# Meta
12+
LICENSE
13+
CODE_OF_CONDUCT.md
14+
CONTRIBUTING.md
15+
16+
# Testing
17+
*.py
18+
*.vsix

CODE_OF_CONDUCT.md

Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
2+
# Contributor Covenant Code of Conduct
3+
4+
## Our Pledge
5+
6+
We as members, contributors, and leaders pledge to make participation in our
7+
community a harassment-free experience for everyone, regardless of age, body
8+
size, visible or invisible disability, ethnicity, sex characteristics, gender
9+
identity and expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, caste, color, religion, or sexual
11+
identity and orientation.
12+
13+
We pledge to act and interact in ways that contribute to an open, welcoming,
14+
diverse, inclusive, and healthy community.
15+
16+
## Our Standards
17+
18+
Examples of behavior that contributes to a positive environment for our
19+
community include:
20+
21+
* Demonstrating empathy and kindness toward other people
22+
* Being respectful of differing opinions, viewpoints, and experiences
23+
* Giving and gracefully accepting constructive feedback
24+
* Accepting responsibility and apologizing to those affected by our mistakes,
25+
and learning from the experience
26+
* Focusing on what is best not just for us as individuals, but for the overall
27+
community
28+
29+
Examples of unacceptable behavior include:
30+
31+
* The use of sexualized language or imagery, and sexual attention or advances of
32+
any kind
33+
* Trolling, insulting or derogatory comments, and personal or political attacks
34+
* Public or private harassment
35+
* Publishing others' private information, such as a physical or email address,
36+
without their explicit permission
37+
* Other conduct which could reasonably be considered inappropriate in a
38+
professional setting
39+
40+
## Enforcement Responsibilities
41+
42+
Community leaders are responsible for clarifying and enforcing our standards of
43+
acceptable behavior and will take appropriate and fair corrective action in
44+
response to any behavior that they deem inappropriate, threatening, offensive,
45+
or harmful.
46+
47+
Community leaders have the right and responsibility to remove, edit, or reject
48+
comments, commits, code, wiki edits, issues, and other contributions that are
49+
not aligned to this Code of Conduct, and will communicate reasons for moderation
50+
decisions when appropriate.
51+
52+
## Scope
53+
54+
This Code of Conduct applies within all community spaces, and also applies when
55+
an individual is officially representing the community in public spaces.
56+
Examples of representing our community include using an official e-mail address,
57+
posting via an official social media account, or acting as an appointed
58+
representative at an online or offline event.
59+
60+
## Enforcement
61+
62+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
63+
reported to the community leaders responsible for enforcement at abhigyantrips@gmail.com.
64+
All complaints will be reviewed and investigated promptly and fairly.
65+
66+
All community leaders are obligated to respect the privacy and security of the
67+
reporter of any incident.
68+
69+
## Enforcement Guidelines
70+
71+
Community leaders will follow these Community Impact Guidelines in determining
72+
the consequences for any action they deem in violation of this Code of Conduct:
73+
74+
### 1. Correction
75+
76+
**Community Impact**: Use of inappropriate language or other behavior deemed
77+
unprofessional or unwelcome in the community.
78+
79+
**Consequence**: A private, written warning from community leaders, providing
80+
clarity around the nature of the violation and an explanation of why the
81+
behavior was inappropriate. A public apology may be requested.
82+
83+
### 2. Warning
84+
85+
**Community Impact**: A violation through a single incident or series of
86+
actions.
87+
88+
**Consequence**: A warning with consequences for continued behavior. No
89+
interaction with the people involved, including unsolicited interaction with
90+
those enforcing the Code of Conduct, for a specified period of time. This
91+
includes avoiding interactions in community spaces as well as external channels
92+
like social media. Violating these terms may lead to a temporary or permanent
93+
ban.
94+
95+
### 3. Temporary Ban
96+
97+
**Community Impact**: A serious violation of community standards, including
98+
sustained inappropriate behavior.
99+
100+
**Consequence**: A temporary ban from any sort of interaction or public
101+
communication with the community for a specified period of time. No public or
102+
private interaction with the people involved, including unsolicited interaction
103+
with those enforcing the Code of Conduct, is allowed during this period.
104+
Violating these terms may lead to a permanent ban.
105+
106+
### 4. Permanent Ban
107+
108+
**Community Impact**: Demonstrating a pattern of violation of community
109+
standards, including sustained inappropriate behavior, harassment of an
110+
individual, or aggression toward or disparagement of classes of individuals.
111+
112+
**Consequence**: A permanent ban from any sort of public interaction within the
113+
community.
114+
115+
## Attribution
116+
117+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118+
version 2.1, available at
119+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120+
121+
Community Impact Guidelines were inspired by
122+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
123+
124+
For answers to common questions about this code of conduct, see the FAQ at
125+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
126+
[https://www.contributor-covenant.org/translations][translations].
127+
128+
[homepage]: https://www.contributor-covenant.org
129+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130+
[Mozilla CoC]: https://github.com/mozilla/diversity
131+
[FAQ]: https://www.contributor-covenant.org/faq
132+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 147 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,147 @@
1+
# Contributing
2+
3+
When contributing to this repository, please first discuss the change you wish to make via issue,
4+
email, or any other method with the owners of this repository before making a change.
5+
6+
Please note we have a code of conduct, please follow it in all your interactions with the project.
7+
8+
## Pull Request Process
9+
10+
1. Ensure any install or build dependencies are removed before the end of the layer when doing a
11+
build.
12+
2. Update the README.md with details of changes to the interface, this includes new environment
13+
variables, exposed ports, useful file locations and container parameters.
14+
3. Increase the version numbers in any examples files and the README.md to the new version that this
15+
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
16+
17+
## Code of Conduct
18+
19+
### Our Pledge
20+
21+
We as members, contributors, and leaders pledge to make participation in our
22+
community a harassment-free experience for everyone, regardless of age, body
23+
size, visible or invisible disability, ethnicity, sex characteristics, gender
24+
identity and expression, level of experience, education, socio-economic status,
25+
nationality, personal appearance, race, caste, color, religion, or sexual
26+
identity and orientation.
27+
28+
We pledge to act and interact in ways that contribute to an open, welcoming,
29+
diverse, inclusive, and healthy community.
30+
31+
### Our Standards
32+
33+
Examples of behavior that contributes to a positive environment for our
34+
community include:
35+
36+
* Demonstrating empathy and kindness toward other people
37+
* Being respectful of differing opinions, viewpoints, and experiences
38+
* Giving and gracefully accepting constructive feedback
39+
* Accepting responsibility and apologizing to those affected by our mistakes,
40+
and learning from the experience
41+
* Focusing on what is best not just for us as individuals, but for the overall
42+
community
43+
44+
Examples of unacceptable behavior include:
45+
46+
* The use of sexualized language or imagery, and sexual attention or advances of
47+
any kind
48+
* Trolling, insulting or derogatory comments, and personal or political attacks
49+
* Public or private harassment
50+
* Publishing others' private information, such as a physical or email address,
51+
without their explicit permission
52+
* Other conduct which could reasonably be considered inappropriate in a
53+
professional setting
54+
55+
### Enforcement Responsibilities
56+
57+
Community leaders are responsible for clarifying and enforcing our standards of
58+
acceptable behavior and will take appropriate and fair corrective action in
59+
response to any behavior that they deem inappropriate, threatening, offensive,
60+
or harmful.
61+
62+
Community leaders have the right and responsibility to remove, edit, or reject
63+
comments, commits, code, wiki edits, issues, and other contributions that are
64+
not aligned to this Code of Conduct, and will communicate reasons for moderation
65+
decisions when appropriate.
66+
67+
### Scope
68+
69+
This Code of Conduct applies within all community spaces, and also applies when
70+
an individual is officially representing the community in public spaces.
71+
Examples of representing our community include using an official e-mail address,
72+
posting via an official social media account, or acting as an appointed
73+
representative at an online or offline event.
74+
75+
### Enforcement
76+
77+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
78+
reported to the community leaders responsible for enforcement at abhigyantrips@gmail.com.
79+
All complaints will be reviewed and investigated promptly and fairly.
80+
81+
All community leaders are obligated to respect the privacy and security of the
82+
reporter of any incident.
83+
84+
### Enforcement Guidelines
85+
86+
Community leaders will follow these Community Impact Guidelines in determining
87+
the consequences for any action they deem in violation of this Code of Conduct:
88+
89+
#### 1. Correction
90+
91+
**Community Impact**: Use of inappropriate language or other behavior deemed
92+
unprofessional or unwelcome in the community.
93+
94+
**Consequence**: A private, written warning from community leaders, providing
95+
clarity around the nature of the violation and an explanation of why the
96+
behavior was inappropriate. A public apology may be requested.
97+
98+
#### 2. Warning
99+
100+
**Community Impact**: A violation through a single incident or series of
101+
actions.
102+
103+
**Consequence**: A warning with consequences for continued behavior. No
104+
interaction with the people involved, including unsolicited interaction with
105+
those enforcing the Code of Conduct, for a specified period of time. This
106+
includes avoiding interactions in community spaces as well as external channels
107+
like social media. Violating these terms may lead to a temporary or permanent
108+
ban.
109+
110+
#### 3. Temporary Ban
111+
112+
**Community Impact**: A serious violation of community standards, including
113+
sustained inappropriate behavior.
114+
115+
**Consequence**: A temporary ban from any sort of interaction or public
116+
communication with the community for a specified period of time. No public or
117+
private interaction with the people involved, including unsolicited interaction
118+
with those enforcing the Code of Conduct, is allowed during this period.
119+
Violating these terms may lead to a permanent ban.
120+
121+
#### 4. Permanent Ban
122+
123+
**Community Impact**: Demonstrating a pattern of violation of community
124+
standards, including sustained inappropriate behavior, harassment of an
125+
individual, or aggression toward or disparagement of classes of individuals.
126+
127+
**Consequence**: A permanent ban from any sort of public interaction within the
128+
community.
129+
130+
### Attribution
131+
132+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
133+
version 2.1, available at
134+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
135+
136+
Community Impact Guidelines were inspired by
137+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
138+
139+
For answers to common questions about this code of conduct, see the FAQ at
140+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
141+
[https://www.contributor-covenant.org/translations][translations].
142+
143+
[homepage]: https://www.contributor-covenant.org
144+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
145+
[Mozilla CoC]: https://github.com/mozilla/diversity
146+
[FAQ]: https://www.contributor-covenant.org/faq
147+
[translations]: https://www.contributor-covenant.org/translations

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Abhigyan Trips
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Disnake Code Snippets
2+
3+
This extension introduces code-snippets for more efficient Discord bot development with [disnake][disnake]. This is inspired from what [wasi-master][vscode-dpy-snippets] has built, and includes snippets for disnake's implementation of slash commands, buttons and select menus.
4+
5+
[disnake]: https://github.com/DisnakeDev/disnake
6+
[vscode-dpy-snippets]: https://github.com/wasi-master/vscode-discord.py-snippets

icon.png

38 KB
Loading

package-lock.json

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

package.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "disnake-code-snippets",
3+
"displayName": "Disnake Code Snippets",
4+
"description": "Code-snippets for more efficient Discord bot development with disnake.",
5+
"version": "1.0.0",
6+
"publisher": "AbhigyanTrips",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/abhigyantrips/disnake-code-snippets"
10+
},
11+
"icon": "icon.png",
12+
"license": "MIT",
13+
"engines": {
14+
"vscode": "^1.18.0"
15+
},
16+
"keywords": [
17+
"discord.py",
18+
"disnake",
19+
"discord",
20+
"discord bot",
21+
"discord snippets",
22+
"discord.py snippets",
23+
"disnake snippets"
24+
],
25+
"categories": [
26+
"Snippets"
27+
],
28+
"contributes": {
29+
"snippets": [
30+
{
31+
"language": "python",
32+
"path": "./snippets/snippets.code-snippets"
33+
}
34+
]
35+
}
36+
}

0 commit comments

Comments
 (0)