This repository has been archived by the owner on Aug 10, 2024. 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.
Merge pull request #24 from plastik-flasche/dev
Dev
- Loading branch information
Showing
186 changed files
with
3,978 additions
and
2,678 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,63 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"overrides": [], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-extra-semi": "warn", | ||
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn", | ||
"prefer-const": "warn", | ||
"@typescript-eslint/ban-ts-comment": "warn", | ||
"no-unused-vars": "off", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"warn", | ||
{ | ||
"vars": "all", | ||
"args": "after-used", | ||
"ignoreRestSiblings": false, | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/no-var-requires": "off", | ||
"no-constant-condition": "warn", | ||
"indent": [ | ||
"error", | ||
"tab", | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"no-empty": [ | ||
"error", | ||
{ | ||
"allowEmptyCatch": true | ||
} | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"linebreak-style": [ | ||
"error", | ||
"windows" | ||
], | ||
"quotes": [ | ||
"warn", | ||
"double" | ||
], | ||
"semi": [ | ||
"warn", | ||
"always" | ||
] | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,4 +5,5 @@ node_modules | |
package-lock.json | ||
.vscode | ||
logs/* | ||
!**/.gitkeep | ||
!**/.gitkeep | ||
Times.json |
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
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
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
This file was deleted.
Oops, something went wrong.
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 @@ | ||
import { Component } from "../../types/command"; | ||
|
||
import userList from "../../schemas/user"; | ||
|
||
module.exports = { | ||
run(_client, _interaction, _args, _guildData, userData) { | ||
userData.economy.wallet = 0; | ||
userData.economy.bank = 0; | ||
userList.findByIdAndUpdate(userData._id, { economy: userData.economy }, (_err: Error, _data: unknown) => { }); | ||
return { content: "Your balance has been reset!", disableOriginal: true }; | ||
} | ||
} as Component; |
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
import { Component } from "../../types/command"; | ||
|
||
import userList from "../../schemas/user"; | ||
|
||
module.exports = { | ||
run(_client, _interaction, _args, _guildData, userData) { | ||
userData.level.xp = 0; | ||
userList.findByIdAndUpdate(userData._id, { level: userData.level }, (_err: Error, _data: unknown) => { }); | ||
return { content: "Your level has been reset!", disableOriginal: true }; | ||
} | ||
} as Component; |
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,20 @@ | ||
import { Component } from "../../types/command"; | ||
|
||
import userList from "../../schemas/user"; | ||
import { Random } from "sussy-util"; | ||
|
||
module.exports = { | ||
name: "search", | ||
commandOptions: { | ||
cooldown: 60 | ||
}, | ||
async run(_client, _interaction, args, _guildData, userData) { | ||
const amount = Random.randomInt(900, 1600); | ||
const current = userData.economy; | ||
current.wallet += amount; | ||
userList.findByIdAndUpdate(userData._id, { economy: current }, (_err: Error, _data: unknown) => { }); | ||
userData.level.xp += 2; | ||
userList.findByIdAndUpdate(userData._id, { level: userData.level }, (_err: Error, _data: unknown) => { }); | ||
return { content: `You found ${amount} gold in the ${args[0]}.`, disableOriginal: true, success: ["command:search", this] }; | ||
} | ||
} as Component; |
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
import { Component } from "../../types/command"; | ||
|
||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"; | ||
|
||
module.exports = { | ||
run(_client, _interaction) { | ||
const choice = new ActionRowBuilder() | ||
.addComponents( | ||
new ButtonBuilder() | ||
.setLabel("GitHub") | ||
.setStyle(ButtonStyle.Link) | ||
.setURL("https://github.com/plastik-flasche/SUS-Bot"), | ||
new ButtonBuilder() | ||
.setLabel("Patreon") | ||
.setStyle(ButtonStyle.Link) | ||
.setURL("https://patreon.com/stupid-useless-patreon"), | ||
new ButtonBuilder() | ||
.setLabel("PayPal") | ||
.setStyle(ButtonStyle.Link) | ||
.setURL("https://paypal.me/stupiduselesspaypal"), | ||
// new ButtonBuilder() | ||
// .setLabel("Crypto") | ||
// .setStyle("LINK") | ||
// .setURL("") | ||
); | ||
return { content: "If you can code, help us out on our Github, if not, maybe buy us some more processing power!", components: [choice] }; | ||
} | ||
} as Component; |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
import { Component } from "../../types/command"; | ||
|
||
module.exports = { | ||
commandOptions: { | ||
connectedToSameVC: true | ||
}, | ||
run(client, interaction) { | ||
let returnValue = client.player.pause(interaction); | ||
if (returnValue !== "The track is already paused") { | ||
return returnValue; | ||
} else { | ||
returnValue = client.player.resume(interaction); | ||
} | ||
return returnValue; | ||
} | ||
} as Component; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.