This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
awfixer
committed
Dec 26, 2024
1 parent
cfc1e0f
commit 9197478
Showing
514 changed files
with
43,800 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,152 @@ | ||
 | ||
|
||
<div id="toc"> | ||
<ul align="center" style="list-style: none"> | ||
<summary> | ||
<h1> | ||
The OSS Everything Bot | ||
</h1> | ||
</summary> | ||
</ul> | ||
</div> | ||
|
||
|
||
|
||
# The API | ||
|
||
## The API for the OSS Everything Bot | ||
|
||
<div align="center"> | ||
<p align="center"> | ||
<a href="https://github.com/the-oss-everythig-bot/api/forks"> | ||
<img alt="Forks" src="https://img.shields.io/github/commit-activity/m/the-oss-everything-bot/api?style=for-the-badge&logo=git&color=EBA0AC&logoColor=EBA0AC&labelColor=302D41"></a> | ||
<a href="https://github.com/the-oss-everything-bot/api"> | ||
<img alt="Repo size" src="https://img.shields.io/github/repo-size/the-oss-everything-bot/api?style=for-the-badge&logo=github&color=FAB387&logoColor=FAB387&labelColor=302D41"/></a> | ||
<a href="https://github.com/the-oss-everything-bot/api/issues"> | ||
<img alt="Issues" src="https://img.shields.io/github/issues/the-oss-everything-bot/api?style=for-the-badge&logo=githubactions&color=F9E2AF&logoColor=F9E2AF&labelColor=302D41"></a> | ||
<a href="https://discord.gg/awfixer"> | ||
<img alt="Discord" src="https://img.shields.io/discord/1297444443103956992?style=for-the-badge&logo=discord&color=B4BEFE&logoColor=B4BEFE&labelColor=302D41"></a> | ||
</p> | ||
</div> | ||
|
||
> [!WARNING] | ||
**This API is dependant on the main bot, and will not work without it.** | ||
|
||
## About | ||
|
||
The original idea for this bot is that no bot does what we want, and since they are close souce, so we are making on that does what we want, and is oss, so that anyone can help and contribute | ||
|
||
|
||
**<h3 align="left">A discord application that does everything, is open source, and can be contributed to by anyone. Sound interesting? We hope so! Join us on Discord and you can keep track of development and talk to us about what you think. We hope to see you there.</h3>** | ||
|
||
**<h3 align="left">Rapid Fire</h3>** | ||
|
||
- 💼 We are currently working on: **💻 making sure this API is OpenAPI Spec compatible** | ||
- 🌱 We currently learning: **📚 All of the things** | ||
- 💬 Ask us about: **💡 Why Discord is the reason their applications usually suck** | ||
- ⚡ Fun fact: **🎢 We once debugged a issue while on a roller coaster!** | ||
- 📂 Portfolio: **<a href="awfixer.xyz" target="_blank">awfixer.xyz</a>** | ||
- 📝 Blog: **<a href="axyl.blog" target="_blank">axyl.blog</a>** | ||
|
||
|
||
**<h3 align="left">Technology Used</h3>** | ||
|
||
<table style="width: 100%; border: 0px solid white;"><tr><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg" height="32" alt="JavaScript"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/typescript/typescript-original.svg" height="32" alt="TypeScript"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/python/python-original.svg" height="32" alt="Python"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/go/go-original-wordmark.svg" height="32" alt="Go"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/nginx/nginx-original.svg" height="32" alt="Nginx"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/elixir/elixir-original.svg" height="32" alt="Elixir"/></td></tr><tr><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/swift/swift-original.svg" height="32" alt="Swift"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://skillicons.dev/icons?i=astro" height="32" alt="Astro"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/hugo/hugo-original.svg" height="32" alt="Hugo"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/appwrite/appwrite-original.svg" height="32" alt="Appwrite"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.simpleicons.org/gitlab/FC6D26" height="32" alt="GitLab"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.simpleicons.org/docker/2496ED" height="32" alt="Docker"/></td></tr><tr><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://skillicons.dev/icons?i=vscode" height="32" alt="VSCode"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Vim-019733?logo=vim&logoColor=white" height="32" alt="Vim"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Lua-2C2D72?logo=lua&logoColor=white" height="32" alt="Lua"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/mongodb/mongodb-original-wordmark.svg" height="32" alt="MongoDB"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/redis/redis-original-wordmark.svg" height="32" alt="Redis"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Kubernetes-326CE5?logo=kubernetes&logoColor=white" height="32" alt="Kubernetes"/></td></tr><tr><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Terraform-623CE4?logo=terraform&logoColor=white" height="32" alt="Terraform"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Ansible-EE0000?logo=ansible&logoColor=white" height="32" alt="Ansible"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/GitHub_Actions-2088FF?logo=github-actions&logoColor=white" height="32" alt="GitHub Actions"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/PostgreSQL-316192?logo=postgresql&logoColor=white" height="32" alt="PostgreSQL"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/TensorFlow-FF6F00?logo=tensorflow&logoColor=white" height="32" alt="TensorFlow"/></td><td style="text-align: center; border: 0px; padding: 12px;"><img src="https://img.shields.io/badge/Grafana-F46800?logo=grafana&logoColor=white" height="32" alt="Grafana"/></td></tr></table> | ||
|
||
# Main Bot (will be moved to the main codebase when the main bot is online ) | ||
|
||
## Current Features | ||
|
||
- | | ||
|
||
### Features in Progress | ||
|
||
- Automoderation handlers | ||
- AI Driven Automod connections | ||
- database management | ||
- Endpoint Use | ||
- New OATH2 Setup | ||
- basic logging | ||
- GPT API linked to self-hosted Ollama | ||
|
||
### Desired Features | ||
|
||
- Modmail | ||
- GPT API | ||
- advanced logging | ||
- libsql database (one per server) | ||
- redis (main bot) | ||
- supabase | ||
- mongodb (main bot) | ||
- postgresql (for custom bots) | ||
- integration with other platforms | ||
- twitch | ||
- youtube | ||
- snapchat | ||
- tiktok | ||
- discord | ||
- slack | ||
- telegram | ||
- signal | ||
- line | ||
- kik | ||
- skype | ||
- zoom | ||
- teams | ||
- webex | ||
- jitsi | ||
- bigbluebutton | ||
- google meet | ||
- spotify | ||
- apple music | ||
- soundcloud | ||
|
||
- integrations with payment and support platforms | ||
- paypal | ||
- stripe | ||
- square | ||
- venmo | ||
- cashapp | ||
- zelle | ||
- apple pay | ||
- google pay | ||
- samsung pay | ||
- amazon pay | ||
- shopify pay | ||
- klarna | ||
- afterpay | ||
- affirm | ||
- sezzle | ||
- quadpay | ||
- klarna | ||
- affirm | ||
- patreon | ||
- gofundme | ||
- kickstarter | ||
- indiegogo | ||
- buymeacoffee | ||
- ko-fi | ||
|
||
#### Languages Used | ||
|
||
- Python | ||
- Javascript | ||
- SQL | ||
- CQL | ||
- Redis (and forks) | ||
- GraphQL | ||
- Go | ||
- Rust | ||
- libsql | ||
|
||
## Reasoning for databases | ||
|
||
We plan on using libsql as well as our other databases to provide a rapid connection for servers of any size, as libsql has an option to give users individual sql databases, which will allow all information on the | ||
user to be stored in the database, seperate from other users, and only active and in use when the user triggers a need for the database, all other information will be stored in redis, or another databases |
Empty file.
Empty file.
Empty file.
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,82 @@ | ||
# config/settings.yml | ||
|
||
DEFAULT_PREFIX: | ||
PROD: "." | ||
DEV: "," | ||
|
||
USER_IDS: | ||
SYSADMINS: | ||
- 123456789012345679 | ||
- 123456789012345679 | ||
BOT_OWNER: 123456789012345679 | ||
|
||
ROLE_IDS: | ||
BOT_ADMIN: 1310131096897327136 | ||
MAGIC_TRIO: 1318149161530687559 | ||
MANAGER: 1297782105719439393 | ||
ADMIN: 1314330941589819482 | ||
STAFF: 1297782095569096724 | ||
MOD: 1297782094784761918 | ||
PATROLMAN: 1314104969921695764 | ||
AUTOMOD_IMMUNITY: 1314909827339649034 | ||
AI_IMMUNITY: 1314909831068647484 | ||
|
||
TEMPVC_CATEGORY_ID: 1314120147887460392 | ||
TEMPVC_CHANNEL_ID: 1317360750141898782 | ||
|
||
|
||
Developer_Only: | ||
- | ||
|
||
XP: | ||
XP_BLACKLIST_CHANNELS: | ||
- 1314891582255792159 | ||
- 1314098671423459421 | ||
- 1314890501341839360 | ||
- 1318144360214171648 | ||
- 1318144380212740096 | ||
- 1318144406066561034 | ||
- 1305770016905629737 | ||
XP_ROLES: | ||
- level: 1 | ||
role_id: 1314897720808439879 | ||
level: 3 | ||
rold_id: 1319119126131904553 | ||
- level: 5 | ||
role_id: 1314329749363097651 | ||
- level: 10 | ||
role_id: 1314329754970619975 | ||
- level: 15 | ||
role_id: 1314329759060197418 | ||
- level: 20 | ||
role_id: 1314329762797457509 | ||
- level: 25 | ||
role_id: 1314329768828600321 | ||
- level: 50 | ||
role_id: 1319119047823986759 | ||
- level: 75 | ||
role_id: 1319119133203497034 | ||
- level: 100 | ||
role_id: 1314388835961933944 | ||
|
||
XP_MULTIPLIERS: | ||
- role_id: 1314388835961933944 | ||
multiplier: 1.5 | ||
|
||
XP_COOLDOWN: 1 # In seconds | ||
|
||
LEVELS_EXPONENT: 1 | ||
SHOW_XP_PROGRESS: false | ||
# if true, XP will still be counted, but not shown beyond the cap in the level command | ||
ENABLE_XP_CAP: false | ||
|
||
GIF_LIMITER: | ||
RECENT_GIF_AGE: 5 | ||
|
||
GIF_LIMIT_EXCLUDE: | ||
- 616596984396120067 | ||
|
||
GIF_LIMITS_USER: | ||
"1037268731568586753": 2 | ||
GIF_LIMITS_CHANNEL: | ||
"1319066687949242410": 3 |
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,5 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/universal:2", | ||
"features": { | ||
} | ||
} |
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,6 @@ | ||
.git | ||
.gitignore | ||
.env | ||
README.md | ||
docker-compose.yml | ||
Dockerfile |
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,2 @@ | ||
watch_file shell.nix | ||
use flake |
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,37 @@ | ||
name: Bug Report | ||
description: File a bug report. | ||
title: "[Bug]: " | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: What happened? | ||
description: Also tell us, what did you expect to happen? | ||
placeholder: Tell us what you see! | ||
value: "I was doing THIS, when THAT happened. I was expecting THAT_OTHER_THING to happen instead." | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: version | ||
attributes: | ||
label: Version check | ||
description: Please make sure you were using the latest version of this project available in the `main` branch. | ||
options: | ||
- label: Yes I was. | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant log output | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell | ||
- type: textarea | ||
id: screens | ||
attributes: | ||
label: Relevant screenshots (optional) | ||
description: Please upload any screenshots that may help us reproduce and/or understand the issue. |
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,13 @@ | ||
name: Feature Request | ||
description: Suggest features for this project. | ||
title: "[Feature request]: " | ||
labels: ["enhancement"] | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: What do you need? | ||
description: Tell us what functionality you would like added/modified? | ||
value: "I want the CLI to do my homework for me." | ||
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,12 @@ | ||
name: Question | ||
description: Ask us questions about this project. | ||
title: "[Question]: " | ||
labels: ["question"] | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: What is your question? | ||
value: "After reading the documentation, I am still not clear how to get X working. I tried this, this, and that." | ||
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,9 @@ | ||
## What this Pull Request (PR) does | ||
Please briefly describe what this PR does. | ||
|
||
## Related issues | ||
Please reference any open issues this PR relates to in here. | ||
If it closes an issue, type `closes #[ISSUE_NUMBER]`. | ||
|
||
## Screenshots | ||
Provide any screenshots you may find relevant to facilitate us understanding your PR. |
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,31 @@ | ||
name: Go Build | ||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
paths-ignore: | ||
- 'patterns/**' | ||
- '**/*.md' | ||
pull_request: | ||
branches: ["main"] | ||
paths-ignore: | ||
- 'patterns/**' | ||
- '**/*.md' | ||
|
||
jobs: | ||
test: | ||
name: Run tests | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: ./go.mod | ||
|
||
- name: Run tests | ||
run: go test -v ./... |
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,33 @@ | ||
name: Patterns Artifact | ||
|
||
on: | ||
push: | ||
paths: | ||
- "patterns/**" # Trigger only on changes to files in the patterns folder | ||
|
||
jobs: | ||
zip-and-upload: | ||
name: Zip and Upload Patterns Folder | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Verify Changes in Patterns Folder | ||
run: | | ||
git fetch origin | ||
if git diff --quiet HEAD~1 -- patterns; then | ||
echo "No changes detected in patterns folder." | ||
exit 1 | ||
fi | ||
- name: Zip the Patterns Folder | ||
run: zip -r patterns.zip patterns/ | ||
|
||
- name: Upload Patterns Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: patterns | ||
path: patterns.zip |
Oops, something went wrong.