Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 3: Slash Commands #821

Open
wants to merge 30 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
fc7a9ea
Slash Command Notes
IanMitchell May 11, 2021
f317a22
Add Barely Functional 8ball Interaction
IanMitchell May 12, 2021
5b72f7b
Merge
IanMitchell Aug 7, 2021
bae15ab
v13 definitely tested and works
IanMitchell Aug 7, 2021
b1825a7
Bot starts
IanMitchell Aug 7, 2021
ffb1cf9
Slash Command Structure Work
IanMitchell Aug 7, 2021
269c161
Interaction Structures
IanMitchell Aug 7, 2021
52cc99e
Migrate DadJoke
IanMitchell Aug 7, 2021
0c1ee9f
Migrate Slots
IanMitchell Aug 7, 2021
ecf919e
Slash Command Updates
IanMitchell Aug 8, 2021
578605f
Fixes
IanMitchell Aug 8, 2021
0c77ef2
Migrate Sarcastic
IanMitchell Aug 8, 2021
66b8db2
Migrate Morse
IanMitchell Aug 8, 2021
7f48ea8
Update embeds.js (fix online guild members) (#851)
crckhub Aug 8, 2021
3a8021f
Fix Slash Commands
IanMitchell Aug 8, 2021
111af35
Fix Slash and Component Interactions
IanMitchell Aug 9, 2021
289bea9
Fixes
IanMitchell Aug 9, 2021
ca5ebb4
We believe, in theory, that this supports guild commands
IanMitchell Aug 9, 2021
84bd193
Notes For Me
IanMitchell Aug 9, 2021
a3ee72e
work
IanMitchell Sep 25, 2022
62b2d12
closer
IanMitchell Sep 25, 2022
e48c001
Command Cleanup
IanMitchell Sep 27, 2022
8706611
migrate slots
IanMitchell Sep 27, 2022
b1d7d3e
Update slots.ts
IanMitchell Sep 27, 2022
ca8b0e7
lunchwork
IanMitchell Oct 6, 2022
6e688dc
update sarcastic
IanMitchell Oct 12, 2022
acd0aa5
Update Order
IanMitchell Oct 12, 2022
629fe13
Choose + Updates
IanMitchell Oct 12, 2022
2b7736a
Migrate Quotes and Reply
IanMitchell Mar 21, 2023
c3f0f44
Remove Deschtimes
IanMitchell Feb 26, 2024
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
  •  
  •  
  •  
26 changes: 0 additions & 26 deletions .devcontainer/Dockerfile

This file was deleted.

49 changes: 0 additions & 49 deletions .devcontainer/devcontainer.json

This file was deleted.

44 changes: 0 additions & 44 deletions .devcontainer/docker-compose.yml

This file was deleted.

85 changes: 28 additions & 57 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,60 +1,31 @@
module.exports = {
env: {
node: true,
'jest/globals': true,
},
extends: [
'airbnb-base',
'plugin:jest/recommended',
'plugin:prettier/recommended',
'plugin:promise/recommended',
],
parser: 'babel-eslint',
plugins: ['jest'],
rules: {
'no-alert': 0,
'class-methods-use-this': 0,
'arrow-parens': [
0,
'as-needed',
{
requireForBlockBody: false,
},
],
'import/prefer-default-export': 0,
'import/no-cycle': 0,
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
// repos with a single test file
'test.{cjs,js,jsx}',
// tests where the extension denotes that it is a test
'**/*.test.{cjs,js,jsx}',
// config files
'**/jest.config.{cjs,js}',
'**/jest.setup.{cjs,js}',
],
optionalDependencies: false,
},
],
'no-restricted-syntax': [
'error',
{
selector: 'ForInStatement',
message:
'for..in loops iterate over the entire prototype chain, which is virtually never what you want. Use Object.{keys,values,entries}, and iterate over the resulting array.',
},
{
selector: 'LabeledStatement',
message:
'Labels are a form of GOTO; using them makes code confusing and hard to maintain and understand.',
},
{
selector: 'WithStatement',
message:
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
},
],
},
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./apps/*/tsconfig.json", "./packages/*/tsconfig.json"],
},
plugins: ["@typescript-eslint"],
extends: ["xo", "xo-typescript", "prettier"],
rules: {
"@typescript-eslint/no-base-to-string": 0,
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/prefer-literal-enum-member": 0,
"@typescript-eslint/naming-convention": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"no-eq-null": 0,
"no-bitwise": 0,
"no-await-in-loop": 0,
"eqeqeq": ["error", "smart"],
"capitalized-comments": 0,
"arrow-body-style": 0,
"complexity": 0,
},
settings: {
"import/resolver": {
typescript: {}, // this loads <rootdir>/tsconfig.json to eslint
},
},
};
17 changes: 0 additions & 17 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

67 changes: 67 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Lint

on: [push, pull_request]

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm

- name: Install
env:
CI: true
run: |
npx lerna bootstrap

- name: Lint
run: |
npm run lint

Formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm

- name: Install
env:
CI: true
run: |
npx lerna bootstrap

- name: Formatting
run: |
npm run prettier

Schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install Node.js 16.x
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm

- name: Install
env:
CI: true
run: |
npx lerna bootstrap

- name: Prisma Validation
run: |
npx prisma generate
65 changes: 11 additions & 54 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,23 @@ name: Test
on: [push, pull_request]

jobs:
Lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install
run: |
npx lerna bootstrap --hoist
- name: Lint
run: |
npm run pretest
npm run lint

Test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.2
- name: Cache dependencies
uses: actions/cache@v2
- uses: actions/checkout@v2

- name: Install Node.js 16.x
uses: actions/setup-node@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
node-version: 16
cache: npm

- name: Install
env:
CI: true
run: |
npx lerna bootstrap --hoist
npx lerna bootstrap

- name: Jest
run: |
npm test

Schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.2
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install
run: |
npx lerna bootstrap --hoist
- name: Prisma Validation
run: |
npx prisma generate
Loading
Loading