Skip to content

Commit

Permalink
update URLs to point to fable.ing (#429)
Browse files Browse the repository at this point in the history
* update pack URLs to point to fable.ing

* update invite URL to point to fable.ing

* update help command description to point to fable.ing
  • Loading branch information
ker0olos committed Feb 25, 2025
1 parent 7554f21 commit 365a84c
Show file tree
Hide file tree
Showing 92 changed files with 43,659 additions and 33,027 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ XMAS=1
FOOLS=1


PACKS_URL=https://packs.deno.dev
PACKS_URL=https://packs.fable.ing

# /now notice

Expand Down
72 changes: 35 additions & 37 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: deno
name: nodejs

on:
push:
Expand All @@ -10,56 +10,54 @@ on:
branches: [main]

jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- run: deno fmt --check

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: actions/setup-node@v3
with:
deno-version: v2.x
- run: deno lint
node-version: "20.x"
- run: npm install
- run: npm run lint

test:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v2.x
- run: deno test -A --coverage=cov_profile --no-check
- run: deno coverage cov_profile --lcov --output=lcov.info
- uses: codecov/codecov-action@v4
- uses: actions/setup-node@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
node-version: "20.x"
- run: npm install
- run: npm run check

deploy:
if: github.event_name == 'push' # event push only runs on main
test:
runs-on: ubuntu-latest
needs:
- test
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: actions/setup-node@v3
with:
deno-version: v2.x
node-version: "20.x"
- run: npm install
- run: npm run test

- run: deno run -A db/_ensureIndexes.ts
env:
MONGO_URI: ${{ secrets.MONGO_URI }}
# deploy:
# if: github.event_name == 'push' # event push only runs on main
# runs-on: ubuntu-latest
# needs:
# - test
# permissions:
# id-token: write
# contents: read
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v3
# with:
# node-version: "20.x"
# - run: deno run -A db/_ensureIndexes.ts
# env:
# MONGO_URI: ${{ secrets.MONGO_URI }}

- uses: denoland/deployctl@v1
with:
project: ${{ secrets.DENO_ID }}
entrypoint: src/interactions.ts
# - uses: denoland/deployctl@v1
# with:
# project: ${{ secrets.DENO_ID }}
# entrypoint: src/interactions.ts
4 changes: 3 additions & 1 deletion .github/workflows/discord.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ jobs:
with:
deno-version: v2.x

- run: npm install

- if: github.ref != 'refs/heads/main'
name: Set environment to dummy
run: echo "GUILD_ID=${{ secrets.DUMMY_GUILD }}" >> "$GITHUB_ENV"

- name: Update Commands
run: deno run -A update_commands.ts
run: ts-node update_commands.ts
env:
APP_ID: ${{ secrets.APP_ID }}
BOT_TOKEN: ${{ secrets.BOT_TOKEN }}
14 changes: 7 additions & 7 deletions .github/workflows/search-index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ on:
workflow_dispatch:
schedule:
# Once a month "At 00:00 on day-of-month 2" (see https://crontab.guru/once-a-month)
- cron: '0 0 2 * *'
- cron: "0 0 2 * *"

jobs:
index:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: denoland/setup-deno@v1
- uses: actions/setup-node@v3
with:
deno-version: v2.x
node-version: "20.x"

- run: deno run -A search-index/index.ts
- run: npm install
- run: ts-node search-index/index.ts
env:
MONGO_URI: ${{ secrets.MONGO_URI }}

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.PAT }}
title: '[bot] Updated Search Indexes'
title: "[bot] Updated Search Indexes"
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
commit-message: '[bot] Updated `search-index/*.bin`'
commit-message: "[bot] Updated `search-index/*.bin`"
branch: update-search-index
delete-branch: true
body: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/topgg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ on:
workflow_dispatch:
schedule:
# Everyday "At 00:00" (see https://crontab.guru/daily)
- cron: '0 0 * * *'
- cron: "0 0 * * *"

jobs:
update-stats:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- uses: actions/setup-node@v3
with:
deno-version: v2.x
node-version: "20.x"

- run: deno run -A update_topgg_stats.ts
- run: npm install
- run: ts-node update_topgg_stats.ts
env:
APP_ID: ${{ secrets.APP_ID }}
TOPGG_TOKEN: ${{ secrets.TOPGG_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.env

cov_profile
lcov.info
lcov.info
node_modules
.wrangler
30 changes: 0 additions & 30 deletions .vscode/deno.code-snippets

This file was deleted.

5 changes: 0 additions & 5 deletions .vscode/extensions.json

This file was deleted.

16 changes: 7 additions & 9 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"files.exclude": {
".git": true,
"**/__snapshots__": true
"**/__snapshots__": true,
"node_modules": true,
".wrangler": true
},
"discord.enabled": true,
"discord.buttonEnabled": true,
Expand All @@ -17,14 +19,10 @@
"README.md": "LICENSE,.gitignore,ToS.md,Policy.md"
},
//
"deno.lint": true,
"deno.enable": true,
"deno.config": "deno.json",
//
"[typescript]": { "editor.defaultFormatter": "denoland.vscode-deno" },
"[typescriptreact]": { "editor.defaultFormatter": "denoland.vscode-deno" },
"[jsonc]": { "editor.defaultFormatter": "denoland.vscode-deno" },
"[markdown]": { "editor.defaultFormatter": "denoland.vscode-deno" },
"[typescript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[typescriptreact]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[jsonc]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
"[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" },
//
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": "file://.github/workflows/deploy.yml"
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Fable has no in-app purchases, no premiums, and no bullshit.
<p>
<img align="left" src="https://i.imgur.com/Kbh4IxM.png" alt="Community Packs">
<h4>Community Packs</h4>
As easy as installing an app on your phone, add community-made character packs to your server, <a href="https://packs.deno.dev/">or create your own.</a>
As easy as installing an app on your phone, add community-made character packs to your server, <a href="https://packs.fable.ing/">or create your own.</a>
</p>

<br clear="left"/>
Expand All @@ -88,7 +88,7 @@ no players can pay to get ahead.
Fable comes with a system where anyone can create new characters, or add
characters that are missing from Fable. Then publish them for anyone else using
Fable to install, wanna start creating your own pack? Visit
<https://packs.deno.dev>
<https://packs.fable.ing>

#### [Add Fable to Your Server][invite]

Expand All @@ -111,7 +111,7 @@ Fable to install, wanna start creating your own pack? Visit

- [Roadmap](https://github.com/ker0olos/fable/issues/1)
- [How to Contribute](https://github.com/ker0olos/fable/wiki)
- [How to Create Packs](https://packs.deno.dev)
- [How to Create Packs](https://packs.fable.ing)
- [Discord Support Server][discord]
- [Donate](https://www.buymeacoffee.com/ker0olos)

Expand Down Expand Up @@ -143,7 +143,8 @@ you can go tell discord to add custom prefixes to "slash" commands instead of
<details><summary>How can I install a new pack on my server?</summary>
<p>

Check the most popular packs or create your own pack at <https://packs.deno.dev>
Check the most popular packs or create your own pack at
<https://packs.fable.ing>

> `Manage Server` permission is required to install packs on "your" server
Expand All @@ -154,7 +155,7 @@ Check the most popular packs or create your own pack at <https://packs.deno.dev>
<p>

It's very easy to create and update community packs, No coding required. Go to
<https://packs.deno.dev>
<https://packs.fable.ing>

</p>
</details>
Expand Down Expand Up @@ -182,5 +183,5 @@ single dollar, it will help a lot.

[discord]: https://discord.gg/ceKyEfhyPQ
[topgg]: https://top.gg/bot/1041970851559522304
[invite]: https://fable.deno.dev/invite
[invite]: https://fable.ing/invite
[buymeacoffee]: https://www.buymeacoffee.com/ker0olos
Loading

0 comments on commit 365a84c

Please sign in to comment.