-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b553b30
Showing
132 changed files
with
28,793 additions
and
0 deletions.
There are no files selected for viewing
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,8 @@ | ||
version = 1 | ||
|
||
[[analyzers]] | ||
name = "python" | ||
enabled = true | ||
|
||
[analyzers.meta] | ||
runtime_version = "3.x.x" |
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,21 @@ | ||
YorForger/config.py | ||
YorForger/*.session | ||
YorForger/*.session-journal | ||
YorForger/config.ini | ||
log.txt | ||
*.pyc | ||
.idea/ | ||
.project | ||
.pydevproject | ||
.directory | ||
.vscode | ||
YorForger/modules/helper_funcs/temp.txt | ||
YorForger/elevated_users.json | ||
start-3.6.bat | ||
*.session | ||
kangsticker.png | ||
venv | ||
env | ||
YorForger.session-journal | ||
updates.txt | ||
*.exe |
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,25 @@ | ||
# Contributing | ||
|
||
Contributions are very welcome! Here are some guidelines on how the project is designed. | ||
|
||
### CodeStyle | ||
|
||
- Adhere to PEP8 as much as possible. | ||
|
||
- Line lengths should be under 120 characters, use list comprehensions over map/filter, don't leave trailing whitespace. | ||
|
||
- More complex pieces of code should be commented for future reference. | ||
|
||
### Structure | ||
|
||
There are a few self-imposed rules on the project structure, to keep the project as tidy as possible. | ||
- All modules should go into the `modules/` directory. | ||
- Any database accesses should be done in `modules/sql/` - no instances of SESSION should be imported anywhere else. | ||
- Make sure your database sessions are properly scoped! Always close them properly. | ||
- When creating a new module, there should be as few changes to other files as possible required to incorporate it. | ||
Removing the module file should result in a bot which is still in perfect working condition. | ||
- If a module is dependent on multiple other files, which might not be loaded, then create a list of at module | ||
load time, in `__main__`, by looking at attributes. This is how migration, /help, /stats, /info, and many other things | ||
are based off of. It allows the bot to work fine with the LOAD and NO_LOAD configurations. | ||
- Keep in mind that some things might clash; eg a regex handler could clash with a command handler - in this case, you | ||
should put them in different dispatcher groups. |
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,9 @@ | ||
FROM python:3.9.1-buster | ||
|
||
WORKDIR /root/YorForger | ||
|
||
COPY . . | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
CMD ["python3","-m","YorForger"] |
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,8 @@ | ||
@echo off | ||
TITLE Github Quick-Pull | ||
|
||
:: Print the branch cause ..oooooo fancy! | ||
echo Pulling from branch: | ||
git branch | ||
echo. | ||
git pull |
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 @@ | ||
@echo off | ||
TITLE Github Quick-pushing | ||
|
||
:: Print the branch cause people like me push to wrong branches and cry about it later. | ||
echo Pushing to branch: | ||
git branch | ||
echo. | ||
:: Take input for comment and thats about it | ||
set /p commit_title="Enter Commit title (pushes with you as author): " | ||
|
||
:: If you are reading comments to understand this part then you can go back stab yourself. | ||
echo. | ||
git add * | ||
git commit -m "%commit_title%" | ||
git pull | ||
git push | ||
|
||
|
||
:: Hail Hydra |
Oops, something went wrong.