Initial commit - Last War messaging system

This commit is contained in:
2026-02-19 01:33:28 -06:00
commit 38a8447a64
2162 changed files with 216183 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
---
<!-- Please keep issues strictly about bugs and feature requests. -->
<!-- If you need help, please join our Discord server. The link is in the README. -->
<!-- Please provide your PHP and DiscordPHP version. This will help us debug. -->
<!-- PHP version can be retrieved by running `php -v` -->
<!-- DiscordPHP version can be retrieved by running `composer show team-reflex/discord-php` -->
**Environment**
- PHP Version:
- x.x.x
- DiscordPHP Version:
- x.x.x
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
```php
$discord->on(..., function () {
// ...
});
```
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Additional context**
Add any other context about the problem here.

View File

@@ -0,0 +1,22 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: features
---
<!-- Please keep issues strictly about bugs and feature requests. -->
<!-- If you need help, please join our Discord server. The link is in the README. -->
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

View File

@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "composer" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"

View File

@@ -0,0 +1,36 @@
name: Build Docs
on:
push:
release:
types: [published]
jobs:
docs:
runs-on: ubuntu-latest
if: github.event_name == 'release' || contains(github.event.head_commit.message, 'build docs')
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: iconv
tools: phive
- name: Install phpDocumentor
run: phive install phpDocumentor --trust-gpg-keys 67F861C3D889C656,6DA3ACC4991FFAE5
- name: Build class reference
run: ./tools/phpDocumentor
- name: Build documentation
run: |
cd ./docs
yarn install
yarn build
sudo mv public/* ../build
- name: Publish docs
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: build
CLEAN: true

View File

@@ -0,0 +1,34 @@
name: Unit Tests
on: [ push ]
env:
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
TEST_CHANNEL: ${{ secrets.TEST_CHANNEL }}
TEST_CHANNEL_NAME: ${{ secrets.TEST_CHANNEL_NAME }}
jobs:
unit-lint:
name: PHPUnit and Lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'no test')"
concurrency: phpunit
strategy:
matrix:
php:
- '8.0'
- '7.4'
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: uv, zlib, mbstring
tools: phpunit, phplint
- name: Install dependencies
run: composer install
- name: Run PHPUnit
run: phpunit
- name: Run PHPLint
run: phplint