Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
72cccd2
Bump hosted-git-info from 2.8.8 to 2.8.9
dependabot[bot] May 9, 2021
f546557
Bump glob-parent from 5.1.1 to 5.1.2
dependabot[bot] Jun 11, 2021
5bdabb0
Bump @sentry/integrations from 5.27.6 to 6.13.3
dependabot[bot] Oct 22, 2021
2686286
proper docker gha caching
Dougley Oct 24, 2021
3782f4a
Bump actions/setup-node from 2.1.2 to 2.4.1 (#847)
dependabot[bot] Oct 24, 2021
91a1734
Merge pull request #850 from TheSharks/dependabot/npm_and_yarn/sentry…
Dougley Oct 24, 2021
f6499db
Merge pull request #808 from TheSharks/dependabot/npm_and_yarn/glob-p…
Dougley Oct 24, 2021
d6a7a00
Merge pull request #790 from TheSharks/dependabot/npm_and_yarn/hosted…
Dougley Oct 24, 2021
f5f8e92
Bump @sentry/node from 5.28.0 to 6.13.3
dependabot[bot] Oct 24, 2021
9b34518
Merge pull request #849 from TheSharks/dependabot/npm_and_yarn/sentry…
Dougley Oct 24, 2021
dfa460f
bump deps
Dougley Oct 24, 2021
0c15aea
update meta files
Dougley Oct 24, 2021
cb0c20f
GitBook: [#4] Init
Dougley Oct 24, 2021
95b9454
Bump postgres from 2.0.0-beta.9 to 2.0.0-beta.10 (#853)
dependabot[bot] Oct 25, 2021
253f566
Bump getsentry/action-release from 1.1.5 to 1.1.6 (#856)
dependabot[bot] Oct 25, 2021
1cb3ba8
Bump fastify/github-action-merge-dependabot from 2.2.0 to 2.5.0 (#855)
dependabot[bot] Oct 25, 2021
31311c2
Bump @types/node from 16.11.4 to 16.11.6 (#858)
dependabot[bot] Oct 26, 2021
d78bcad
Bump detritus-client from 0.16.4-beta.4 to 0.16.4-beta.5 (#859)
dependabot[bot] Oct 27, 2021
af6fde1
enable randomize button even when list has ended
Dougley Oct 30, 2021
8d91527
new boorus
Dougley Oct 30, 2021
f9abee3
meme command
Dougley Oct 30, 2021
78f452d
ditch a few duplicated build steps
Dougley Oct 30, 2021
3b37fc6
clustering
Dougley Oct 31, 2021
c0bf6f5
jobs
Dougley Oct 31, 2021
274909e
8.1.0
Dougley Oct 31, 2021
0698f9e
small refractor
Dougley Oct 31, 2021
b363d49
Bump @sentry/node from 6.13.3 to 6.14.0 (#861)
dependabot[bot] Nov 3, 2021
7feeecc
Bump @sentry/integrations from 6.13.3 to 6.14.0 (#862)
dependabot[bot] Nov 3, 2021
ce8a6fa
better version detection
Dougley Nov 4, 2021
cc3697e
actually properly do this
Dougley Nov 4, 2021
308e08c
close enough
Dougley Nov 4, 2021
4990877
Bump @sentry/node from 6.14.0 to 6.14.1 (#863)
dependabot[bot] Nov 5, 2021
90930c8
Bump @sentry/integrations from 6.14.0 to 6.14.1 (#864)
dependabot[bot] Nov 5, 2021
3bee3fe
Bump crowdin/github-action from 1.4.0 to 1.4.1 (#866)
dependabot[bot] Nov 8, 2021
fc9ab42
Bump @types/node from 16.11.6 to 16.11.7 (#867)
dependabot[bot] Nov 9, 2021
21ea5dc
fix a few translation keys
Dougley Nov 9, 2021
c074fc4
Bump eslint-plugin-import from 2.25.2 to 2.25.3 (#869)
dependabot[bot] Nov 10, 2021
81c9697
Bump intl-messageformat from 9.9.4 to 9.9.5 (#870)
dependabot[bot] Nov 10, 2021
96e128f
Bump @sentry/node from 6.14.1 to 6.14.3 (#871)
dependabot[bot] Nov 12, 2021
10de567
Bump @sentry/integrations from 6.14.1 to 6.14.3 (#872)
dependabot[bot] Nov 12, 2021
ddfac76
Bump intl-messageformat from 9.9.5 to 9.9.6 (#874)
dependabot[bot] Nov 15, 2021
d4b8205
bump detritus
Dougley Nov 15, 2021
87c8fc8
Bump @sentry/integrations from 6.14.3 to 6.15.0 (#875)
dependabot[bot] Nov 16, 2021
62a984e
Bump @sentry/node from 6.14.3 to 6.15.0 (#876)
dependabot[bot] Nov 16, 2021
eeb7abc
Bump postgres from 2.0.0-beta.10 to 2.0.0-beta.11 (#878)
dependabot[bot] Nov 18, 2021
2c490eb
Bump typescript from 4.4.4 to 4.5.2 (#879)
dependabot[bot] Nov 18, 2021
1f75f31
Bump date-fns from 2.25.0 to 2.26.0 (#880)
dependabot[bot] Nov 19, 2021
022963f
Bump @types/node from 16.11.7 to 16.11.9 (#881)
dependabot[bot] Nov 19, 2021
346e6df
Bump fastify/github-action-merge-dependabot from 2.5.0 to 2.6.0 (#883)
dependabot[bot] Nov 22, 2021
ef87afa
misc
Dougley Nov 23, 2021
6966da2
Bump @types/node from 16.11.9 to 16.11.10 (#884)
dependabot[bot] Nov 24, 2021
31c8ff5
Bump discord-api-types from 0.24.0 to 0.25.0 (#886)
dependabot[bot] Nov 29, 2021
a6737a8
Bump actions/setup-node from 2.4.1 to 2.5.0 (#887)
dependabot[bot] Nov 29, 2021
6a27cda
Bump @types/node from 16.11.10 to 16.11.11 (#888)
dependabot[bot] Nov 30, 2021
8c72599
Bump date-fns from 2.26.0 to 2.27.0 (#889)
dependabot[bot] Nov 30, 2021
a011c85
Bump discord-api-types from 0.25.0 to 0.25.1 (#891)
dependabot[bot] Nov 30, 2021
f2f3f30
Bump eslint-plugin-promise from 5.1.1 to 5.2.0 (#892)
dependabot[bot] Dec 1, 2021
58987b7
Bump discord-api-types from 0.25.1 to 0.25.2 (#893)
dependabot[bot] Dec 1, 2021
2caa1c9
Bump intl-messageformat from 9.9.6 to 9.10.0 (#894)
dependabot[bot] Dec 1, 2021
31310ee
Bump fastify/github-action-merge-dependabot from 2.6.0 to 2.7.0 (#896)
dependabot[bot] Dec 6, 2021
1f4bb89
Bump @types/node from 16.11.11 to 16.11.12 (#899)
dependabot[bot] Dec 7, 2021
53b938e
Bump @sentry/integrations from 6.15.0 to 6.16.0 (#900)
dependabot[bot] Dec 8, 2021
dd24111
Bump @sentry/node from 6.15.0 to 6.16.0 (#901)
dependabot[bot] Dec 8, 2021
ee7d0b9
Bump typescript from 4.5.2 to 4.5.3 (#902)
dependabot[bot] Dec 10, 2021
a726e7f
fix no results error for derpibooru
Dougley Dec 11, 2021
ff0ad6f
Bump @sentry/integrations from 6.16.0 to 6.16.1 (#903)
dependabot[bot] Dec 13, 2021
83e859d
Bump fastify/github-action-merge-dependabot from 2.7.0 to 2.7.1 (#905)
dependabot[bot] Dec 13, 2021
6cab58d
Bump crowdin/github-action from 1.4.1 to 1.4.2 (#907)
dependabot[bot] Dec 13, 2021
d3d9441
Bump @sentry/node from 6.16.0 to 6.16.1 (#904)
dependabot[bot] Dec 13, 2021
7097e96
Bump typescript from 4.5.3 to 4.5.4 (#909)
dependabot[bot] Dec 14, 2021
836559c
Bump @types/node from 16.11.12 to 16.11.13 (#910)
dependabot[bot] Dec 15, 2021
d0764bd
Bump crowdin/github-action from 1.4.2 to 1.4.4 (#916)
dependabot[bot] Dec 20, 2021
ff75f95
fix no results for rule34.xxx
Dougley Dec 20, 2021
551372b
tag rankings
Dougley Jan 1, 2022
24a783e
Bump actions/setup-node from 2.5.0 to 2.5.1 (#922)
dependabot[bot] Jan 3, 2022
4ae610e
Bump crowdin/github-action from 1.4.4 to 1.4.5 (#927)
dependabot[bot] Jan 10, 2022
12a0b1a
make tags strongly typed
Dougley Jan 14, 2022
7a47825
ts-node is not required for migrations
Dougley Jan 14, 2022
b88fafc
bump deps
Dougley Jan 14, 2022
b3ebc35
bump actions
Dougley Jan 14, 2022
0ae9f51
Bump @types/node from 17.0.8 to 17.0.9 (#930)
dependabot[bot] Jan 17, 2022
9667114
Bump crowdin/github-action from 1.4.5 to 1.4.6 (#932)
dependabot[bot] Jan 17, 2022
454d2a3
Bump @typescript-eslint/eslint-plugin from 5.9.1 to 5.10.0 (#933)
dependabot[bot] Jan 18, 2022
b73f68a
GitBook: [#7] No subject
Dougley Jan 18, 2022
6c05e46
Bump @types/node from 17.0.9 to 17.0.10 (#935)
dependabot[bot] Jan 19, 2022
96d4cc3
unify listing site updaters
Dougley Jan 19, 2022
a6bebc7
Bump typescript from 4.5.4 to 4.5.5 (#936)
dependabot[bot] Jan 21, 2022
e23fc7c
start on analytics
Dougley Jan 21, 2022
2b91159
swap from postgres to elastic for analytics
Dougley Feb 7, 2022
644ce51
remove safeReply
Dougley Feb 7, 2022
8e37510
dont instantly flush
Dougley Feb 7, 2022
17752b8
more elastic logging
Dougley Feb 8, 2022
599b92e
bump deps
Dougley Feb 8, 2022
3998be4
oops
Dougley Feb 8, 2022
cdd2050
Bump @sentry/integrations from 6.17.5 to 6.17.6 (#955)
dependabot[bot] Feb 9, 2022
0f5ae35
Bump @sentry/node from 6.17.5 to 6.17.6 (#956)
dependabot[bot] Feb 9, 2022
5ffc387
Bump discord-api-types from 0.26.1 to 0.27.0 (#957)
dependabot[bot] Feb 10, 2022
a914970
Bump @types/node from 17.0.16 to 17.0.17 (#958)
dependabot[bot] Feb 10, 2022
071f231
bump elastic
Dougley Feb 12, 2022
752da70
change flush interval
Dougley Feb 12, 2022
8c46137
Bump discord-api-types from 0.27.0 to 0.27.1 (#960)
dependabot[bot] Feb 14, 2022
1ed9f8a
Bump detritus-client from 0.16.4-beta.6 to 0.17.0-beta.1 (#962)
dependabot[bot] Feb 14, 2022
c83e4ed
Bump @sentry/node from 6.17.6 to 6.17.7 (#963)
dependabot[bot] Feb 14, 2022
402e1fc
Bump Azure/k8s-deploy from 1 to 3.0
dependabot[bot] Feb 14, 2022
daff1b5
Bump @sentry/integrations from 6.17.6 to 6.17.7 (#964)
dependabot[bot] Feb 14, 2022
36de0ff
Merge pull request #965 from TheSharks/dependabot/github_actions/Azur…
Dougley Feb 15, 2022
ab005e1
Bump @sentry/integrations from 6.17.7 to 6.17.8 (#966)
dependabot[bot] Feb 15, 2022
3095378
Bump @typescript-eslint/eslint-plugin from 5.11.0 to 5.12.0 (#967)
dependabot[bot] Feb 15, 2022
d77478c
Bump @types/node from 17.0.17 to 17.0.18 (#968)
dependabot[bot] Feb 15, 2022
a997c28
Bump @sentry/node from 6.17.7 to 6.17.8 (#969)
dependabot[bot] Feb 15, 2022
bcfece6
Bump @sentry/integrations from 6.17.8 to 6.17.9 (#970)
dependabot[bot] Feb 17, 2022
ba7b3bf
Bump discord-api-types from 0.27.1 to 0.27.2 (#972)
dependabot[bot] Feb 17, 2022
e3dcd25
Bump @sentry/node from 6.17.8 to 6.17.9 (#971)
dependabot[bot] Feb 17, 2022
67d126e
translation revamp
Dougley Feb 18, 2022
6110ecd
Merge branch 'master' of https://github.com/thesharks/WildBeast
Dougley Feb 18, 2022
004f015
crowdin action update
Dougley Feb 18, 2022
75bf0a1
oops
Dougley Feb 18, 2022
b0b8d29
New Crowdin translations by Github Action
crowdin-bot Feb 18, 2022
44219ba
Merge pull request #973 from TheSharks/l10n_crowdin_action
Dougley Feb 18, 2022
0ff5822
small tweaks
Dougley Feb 18, 2022
7433fce
actions update
Dougley Feb 19, 2022
5d7d097
fix a few bugs
Dougley Feb 19, 2022
f504fff
Update crowdin.yml
Dougley Feb 19, 2022
30b4149
[chore] Update translations
github-actions[bot] Feb 19, 2022
414e5cc
[chore] Update translations
github-actions[bot] Feb 20, 2022
c301490
Bump @types/node from 17.0.18 to 17.0.19 (#974)
dependabot[bot] Feb 21, 2022
54f5605
Bump crowdin/github-action from 1.4.6 to 1.4.7 (#975)
dependabot[bot] Feb 21, 2022
daaf64b
Bump @typescript-eslint/eslint-plugin from 5.12.0 to 5.12.1 (#976)
dependabot[bot] Feb 22, 2022
f0dba17
Bump @types/node from 17.0.19 to 17.0.20 (#977)
dependabot[bot] Feb 23, 2022
8d65676
Bump discord-api-types from 0.27.2 to 0.27.3 (#978)
dependabot[bot] Feb 24, 2022
4c3ed06
Bump @types/node from 17.0.20 to 17.0.21 (#979)
dependabot[bot] Feb 24, 2022
0fc8b82
Bump @sentry/node from 6.17.9 to 6.18.0 (#980)
dependabot[bot] Feb 25, 2022
a9150a9
Bump @sentry/integrations from 6.17.9 to 6.18.0 (#981)
dependabot[bot] Feb 25, 2022
474355a
translations paths for booru
Dougley Feb 28, 2022
2edb3ca
Bump @sentry/node from 6.18.0 to 6.18.1 (#983)
dependabot[bot] Mar 1, 2022
566695b
Bump typescript from 4.5.5 to 4.6.2 (#984)
dependabot[bot] Mar 1, 2022
34e4566
Bump @sentry/integrations from 6.18.0 to 6.18.1 (#985)
dependabot[bot] Mar 1, 2022
66e8b36
Bump @typescript-eslint/eslint-plugin from 5.12.1 to 5.13.0 (#986)
dependabot[bot] Mar 2, 2022
d3e98c1
Bump ts-node from 10.5.0 to 10.6.0 (#987)
dependabot[bot] Mar 2, 2022
e1d9f48
remove some obsolete workarounds
Dougley Mar 3, 2022
f2a76f8
Bump ts-node from 10.6.0 to 10.7.0 (#989)
dependabot[bot] Mar 7, 2022
57ddb51
Bump discord-api-types from 0.27.3 to 0.28.0 (#988)
dependabot[bot] Mar 7, 2022
8aff71d
Bump @typescript-eslint/eslint-plugin from 5.13.0 to 5.14.0 (#991)
dependabot[bot] Mar 8, 2022
f3d55c9
Bump @elastic/elasticsearch from 8.0.0 to 8.1.0 (#992)
dependabot[bot] Mar 9, 2022
03dfde8
Bump discord-api-types from 0.28.0 to 0.29.0 (#996)
dependabot[bot] Mar 10, 2022
c20bd06
Bump @typescript-eslint/eslint-plugin from 5.14.0 to 5.15.0 (#997)
dependabot[bot] Mar 15, 2022
2b04a27
Bump @typescript-eslint/eslint-plugin from 5.15.0 to 5.16.0 (#1001)
dependabot[bot] Mar 22, 2022
2fb4bfc
Bump @types/node from 17.0.21 to 17.0.23 (#1004)
dependabot[bot] Mar 24, 2022
c9cefe2
Bump minimist from 1.2.5 to 1.2.6 (#1008)
dependabot[bot] Mar 24, 2022
383a2fa
Bump discord-api-types from 0.29.0 to 0.30.0 (#1009)
dependabot[bot] Mar 25, 2022
9e44db5
Bump typescript from 4.6.2 to 4.6.3 (#1011)
dependabot[bot] Mar 25, 2022
8878d97
edited > updated
Dougley Mar 26, 2022
a63ced6
[chore] Update translations
github-actions[bot] Mar 27, 2022
89c11fa
Bump intl-messageformat from 9.11.4 to 9.12.0 (#1012)
dependabot[bot] Mar 28, 2022
d98ebb2
Bump @typescript-eslint/eslint-plugin from 5.16.0 to 5.17.0 (#1013)
dependabot[bot] Mar 29, 2022
fc2cace
Bump @typescript-eslint/eslint-plugin from 5.17.0 to 5.18.0 (#1020)
dependabot[bot] Apr 5, 2022
4fbce9b
Bump discord-api-types from 0.30.0 to 0.31.1 (#1030)
dependabot[bot] Apr 12, 2022
04e96aa
Bump eslint-plugin-import from 2.25.4 to 2.26.0 (#1031)
dependabot[bot] Apr 12, 2022
7bd01a4
Bump @typescript-eslint/eslint-plugin from 5.18.0 to 5.19.0 (#1032)
dependabot[bot] Apr 12, 2022
0978f6e
Bump @types/node from 17.0.23 to 17.0.24 (#1033)
dependabot[bot] Apr 14, 2022
e1fda6d
Bump Azure/k8s-deploy from 3.0 to 3.1 (#1034)
dependabot[bot] Apr 18, 2022
1fc2931
Bump crowdin/github-action from 1.4.7 to 1.4.8 (#1035)
dependabot[bot] Apr 18, 2022
d68cfb7
Bump discord-api-types from 0.31.1 to 0.31.2 (#1038)
dependabot[bot] Apr 19, 2022
4e4104b
Bump @types/node from 17.0.24 to 17.0.25 (#1039)
dependabot[bot] Apr 19, 2022
28e2b39
Bump @typescript-eslint/eslint-plugin from 5.19.0 to 5.21.0 (#1043)
dependabot[bot] Apr 26, 2022
690dd5f
changes for app discovery
Dougley Jul 28, 2022
d1d7919
dep updates
Dougley Jul 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
20 changes: 6 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
# Standard configuration

BOT_TOKEN=MjM4NDk0NzU2NTIxMzc3Nzky.CunGFQ.wUILz7z6HoJzVeq6pyHPmVgQgV4
BOT_PREFIX=++
WILDBEAST_MASTERS=107904023901777920,152664793587777537
LAVALINK_NODES=[{"host": "localhost", "port": "8080", "region": "us", "password": "youshallnotpass"}]
DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres

# API keys

TWITCH_ID=a3fsaffj4tbse36
IMGUR_KEY=5i8rythbhtx654235hrs34
# SENTRY_DSN=https://ingress.sentry.io
# WILDBEAST_BOTS_GG_KEY=daw3213vdsvz232
# WILDBEAST_TOP_GG_KEY=5ee54fgdn4yjcresjvj

# Advanced configuration

# WILDBEAST_K8S_AUTOSCALE=false
# LAVALINK_AUTODISCOVERY={}
# ENABLE_METRICS=false
# METRICS_INTERVAL=5000
# PROM_PORT=8080
# WILDBEAST_ENV_CHECK_DISABLED=false
# NODE_ENV=debug
# WILDBEAST_SUPPRESS_COMMANDLOG=false
# WILDBEAST_INVITE_OVERRIDE=https://invite.thesharks.xyz
# WILDBEAST_SHARDING_START=0
# WILDBEAST_SHARDING_END=1
# WILDBEAST_SHARDING_TOTAL=2
# WILDBEAST_LANGUAGE=en-US
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules/
dist/
src/languages/
4 changes: 2 additions & 2 deletions .gitbook.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
root: ./docs

structure:
readme: home.md
summary: README.md
readme: README.md
summary: SUMMARY.md
22 changes: 0 additions & 22 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,25 +114,3 @@ export default class GreetCommand extends BaseSlashCommand {
// ...
}
```

### Sending messages

When sending messages, send them using `<BaseInteractionCommand>.safeReply()`. This will disable all mentions in the message making it safe to directly pass user-input. Calling `<InteractionContext>.editOrRespond()` or other methods that return text directly is discouraged.

```ts
// ⚠ avoid
export default class GreetCommand extends BaseSlashCommand {
async run (context: Interaction.InteractionContext): Promise<void> {
await context.awaitOrRespond('Hello world!')
}
}
```

```ts
// ✓ prefered
export default class GreetCommand extends BaseSlashCommand {
async run (context: Interaction.InteractionContext): Promise<void> {
await this.safeReply(context, 'Hello world!')
}
}
```
66 changes: 51 additions & 15 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,58 @@ name: Crowdin Action
on:
push:
branches: [ master ]
schedule:
- cron: '30 5,17 * * *'
workflow_dispatch:

jobs:
synchronize-with-crowdin:
download-from-crowdin:
if: ${{ github.event_name != 'push' }}
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v2

- name: crowdin action
uses: crowdin/github-action@1.4.0
with:
upload_sources: true
download_translations: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Download from Crowdin
uses: crowdin/github-action@1.4.8
with:
upload_sources: false
download_translations: true
create_pull_request: false
push_translations: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
- name: Commit changes
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
if [ -z "$(git status --porcelain)" ]; then
echo "Files have not changed"
else
echo "Files have changed"
git add .
git commit -m "[chore] Update translations" -a
git push origin master
fi

upload-to-crowdin:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Upload to Crowdin
uses: crowdin/github-action@1.4.8
if: ${{ github.event_name == 'push' }}
with:
upload_sources: true
download_translations: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ jobs:

- run: echo "deploying to production with tag ${{ needs.determine-image.outputs.tag }}"
- name: Authenticate with Kubernetes
uses: azure/k8s-set-context@v1
uses: azure/k8s-set-context@v12
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}

- name: Deploy to Kubernetes
uses: Azure/k8s-deploy@v1
uses: Azure/k8s-deploy@v3.1
with:
manifests: |
manifests/deployment.yaml
Expand All @@ -64,13 +64,13 @@ jobs:

- run: echo "deploying to staging with tag ${{ needs.determine-image.outputs.tag }}"
- name: Authenticate with Kubernetes
uses: azure/k8s-set-context@v1
uses: azure/k8s-set-context@v2
with:
method: kubeconfig
kubeconfig: ${{ secrets.KUBECONFIG }}

- name: Deploy to Kubernetes
uses: Azure/k8s-deploy@v1
uses: Azure/k8s-deploy@v3.1
with:
manifests: |
bot/deployment.yaml
Expand Down
14 changes: 5 additions & 9 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ on:
tags:
- v*

# Run tests for any PRs.
pull_request:

jobs:
push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,12 +66,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Layer caching
uses: satackey/action-docker-layer-caching@v0.0.11
# Ignore the failure of a step and avoid terminating the job.
continue-on-error: true


- name: Build and push
uses: docker/build-push-action@v2
with:
Expand All @@ -83,3 +75,7 @@ jobs:
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
COMMIT=${{ github.sha }}
9 changes: 6 additions & 3 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [14.x, 16.x, 17.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2.1.2
uses: actions/setup-node@v2.5.1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
Expand All @@ -39,8 +39,11 @@ jobs:
needs: build
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: fastify/github-action-merge-dependabot@v2.2.0
- uses: fastify/github-action-merge-dependabot@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
target: minor
4 changes: 2 additions & 2 deletions .github/workflows/sentry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2.1.2
- uses: actions/setup-node@v2.5.1
with:
node-version: 16
- run: npm i && npx tsc
- name: Create Sentry release
uses: getsentry/action-release@v1.1.5
uses: getsentry/action-release@v1.1.6
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
Expand Down
34 changes: 31 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Launch Program - TSC Compiled",
"name": "Cluster - TSC Compiled",
"program": "${workspaceFolder}/dist/index.js",
"request": "launch",
"skipFiles": [
Expand All @@ -19,7 +19,7 @@
"type": "pwa-node"
},
{
"name": "Launch Program - ts-node with Debugger",
"name": "Cluster - ts-node with Debugger",
"type": "pwa-node",
"request": "launch",
"runtimeArgs": [
Expand All @@ -31,6 +31,34 @@
"args": [
"${workspaceFolder}/src/index.ts"
]
}
},
{
"name": "Plain - TSC Compiled",
"program": "${workspaceFolder}/dist/entry.js",
"request": "launch",
"skipFiles": [
"<node_internals>/**"
],
"runtimeArgs": [
"-r",
"dotenv/config"
],
"preLaunchTask": "tsc: build - tsconfig.json",
"type": "pwa-node"
},
{
"name": "Plain - ts-node with Debugger",
"type": "pwa-node",
"request": "launch",
"runtimeArgs": [
"-r",
"ts-node/register",
"-r",
"dotenv/config"
],
"args": [
"${workspaceFolder}/src/entry.ts"
]
},
]
}
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
FROM node:lts-alpine
ARG COMMIT

WORKDIR /usr/wildbeast

COPY tsconfig.json ./
COPY package*.json ./

RUN npm install

COPY src ./src

RUN npm run compile
ENV GIT_COMMIT ${COMMIT}

RUN npm install
RUN npm prune --production

CMD ["npm", "start"]
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN

files:
- source: /src/languages/en-EN.ts
translation: /src/languages/%locale%.ts
- source: /src/languages/en-US/**/*.strings.ts
translation: /src/languages/%two_letters_code%/**/%original_file_name%
Binary file added docs/.gitbook/assets/afbeelding (1) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (10) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (10).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (11) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (11).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (12).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (13).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (2) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (2).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (3) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (3).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (4) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (4).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (5) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (5).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (6) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (6).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (7) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (7).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (8) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (8).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (9) (1).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding (9).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/.gitbook/assets/afbeelding.png
Binary file added docs/.gitbook/assets/image (1).png
Binary file added docs/.gitbook/assets/image (2).png
Binary file added docs/.gitbook/assets/image (3).png
Binary file added docs/.gitbook/assets/image (4).png
Binary file added docs/.gitbook/assets/image (5).png
Binary file added docs/.gitbook/assets/image (6).png
Binary file added docs/.gitbook/assets/image.png
Binary file added docs/.gitbook/assets/wildebeest1.png
Binary file added docs/.gitbook/assets/wildebeest2.png
33 changes: 33 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# What is WildBeast?

WildBeast is a wheels-attached Discord bot - meaning the heavy lifting is already done for you, making WildBeast easy to modify and extend to perfectly fit your use case.

This documentation focusses on self-hosting and extending WildBeast. If you don't feel like hosting your own instance, we host a publicly available version of WildBeast known as [WildBot](https://invite.thesharks.xyz) which you can invite to your own server.

## Getting Started

Ready to get your hands dirty? Pick one of these guides to get started with WildBeast.

{% content-ref url="guides/linux-guides/" %}
[linux-guides](guides/linux-guides/)
{% endcontent-ref %}

### Fundamentals: Dive a little deeper

Looking to write your own commands, or other custom features? Look below for our advanced guides.

{% content-ref url="fundamentals/commands/" %}
[commands](fundamentals/commands/)
{% endcontent-ref %}

{% content-ref url="fundamentals/commands/slash-commands/buttons.md" %}
[buttons.md](fundamentals/commands/slash-commands/buttons.md)
{% endcontent-ref %}

{% content-ref url="broken-reference" %}
[Broken link](broken-reference)
{% endcontent-ref %}

{% content-ref url="broken-reference" %}
[Broken link](broken-reference)
{% endcontent-ref %}
25 changes: 25 additions & 0 deletions docs/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Table of contents

* [What is WildBeast?](README.md)

## Guides

* [Linux guides](guides/linux-guides/README.md)
* [Setup](guides/linux-guides/setup.md)
* [Running as a service](guides/linux-guides/running-as-a-service.md)

## Fundamentals

* [Commands](fundamentals/commands/README.md)
* [Slash commands](fundamentals/commands/slash-commands/README.md)
* [Subcommands](fundamentals/commands/slash-commands/subcommands.md)
* [Options](fundamentals/commands/slash-commands/options.md)
* [Buttons](fundamentals/commands/slash-commands/buttons.md)
* [Context menu actions](fundamentals/commands/context-menu-actions.md)
* [Jobs](fundamentals/jobs.md)

## Extras

* [VPS recommendations](extras/vps-recommendations.md)
* [Creating a bot account](extras/creating-a-bot-account.md)
* [Adding your bot to your server](extras/adding-your-bot-to-your-server.md)
Loading