mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 00:10:58 -05:00
Swap package
This commit is contained in:
parent
673d2e0aee
commit
7f48ed4e82
22
.pnp.cjs
generated
22
.pnp.cjs
generated
@ -35,8 +35,8 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
["@types/ms", "npm:0.7.32"],\
|
["@types/ms", "npm:0.7.32"],\
|
||||||
["@types/node", "npm:20.8.2"],\
|
["@types/node", "npm:20.8.2"],\
|
||||||
["@types/node-cron", "npm:3.0.9"],\
|
["@types/node-cron", "npm:3.0.9"],\
|
||||||
|
["ansi-colors", "npm:4.1.3"],\
|
||||||
["canvas", "npm:2.11.2"],\
|
["canvas", "npm:2.11.2"],\
|
||||||
["chalk", "npm:5.3.0"],\
|
|
||||||
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.4"],\
|
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.4"],\
|
||||||
["discord.js", "npm:14.13.0"],\
|
["discord.js", "npm:14.13.0"],\
|
||||||
["libsodium-wrappers", "npm:0.7.13"],\
|
["libsodium-wrappers", "npm:0.7.13"],\
|
||||||
@ -770,6 +770,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
|
["ansi-colors", [\
|
||||||
|
["npm:4.1.3", {\
|
||||||
|
"packageLocation": "./.yarn/cache/ansi-colors-npm-4.1.3-8ffd0ae6c7-a9c2ec8420.zip/node_modules/ansi-colors/",\
|
||||||
|
"packageDependencies": [\
|
||||||
|
["ansi-colors", "npm:4.1.3"]\
|
||||||
|
],\
|
||||||
|
"linkType": "HARD"\
|
||||||
|
}]\
|
||||||
|
]],\
|
||||||
["ansi-regex", [\
|
["ansi-regex", [\
|
||||||
["npm:5.0.1", {\
|
["npm:5.0.1", {\
|
||||||
"packageLocation": "./.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip/node_modules/ansi-regex/",\
|
"packageLocation": "./.yarn/cache/ansi-regex-npm-5.0.1-c963a48615-2aa4bb54ca.zip/node_modules/ansi-regex/",\
|
||||||
@ -931,15 +940,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
"linkType": "HARD"\
|
"linkType": "HARD"\
|
||||||
}]\
|
}]\
|
||||||
]],\
|
]],\
|
||||||
["chalk", [\
|
|
||||||
["npm:5.3.0", {\
|
|
||||||
"packageLocation": "./.yarn/cache/chalk-npm-5.3.0-d181999efb-623922e077.zip/node_modules/chalk/",\
|
|
||||||
"packageDependencies": [\
|
|
||||||
["chalk", "npm:5.3.0"]\
|
|
||||||
],\
|
|
||||||
"linkType": "HARD"\
|
|
||||||
}]\
|
|
||||||
]],\
|
|
||||||
["chownr", [\
|
["chownr", [\
|
||||||
["npm:2.0.0", {\
|
["npm:2.0.0", {\
|
||||||
"packageLocation": "./.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip/node_modules/chownr/",\
|
"packageLocation": "./.yarn/cache/chownr-npm-2.0.0-638f1c9c61-c57cf9dd07.zip/node_modules/chownr/",\
|
||||||
@ -1060,8 +1060,8 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
|
|||||||
["@types/ms", "npm:0.7.32"],\
|
["@types/ms", "npm:0.7.32"],\
|
||||||
["@types/node", "npm:20.8.2"],\
|
["@types/node", "npm:20.8.2"],\
|
||||||
["@types/node-cron", "npm:3.0.9"],\
|
["@types/node-cron", "npm:3.0.9"],\
|
||||||
|
["ansi-colors", "npm:4.1.3"],\
|
||||||
["canvas", "npm:2.11.2"],\
|
["canvas", "npm:2.11.2"],\
|
||||||
["chalk", "npm:5.3.0"],\
|
|
||||||
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.4"],\
|
["discord-player", "virtual:20c353e2d6536e37339997f03975c6a660f4d296e664d291bd43620c6162cca8eb5ef90b0998dc9db75ff6862e5da587d0530bae26805f5fadc8f17aaa4ff794#npm:6.6.4"],\
|
||||||
["discord.js", "npm:14.13.0"],\
|
["discord.js", "npm:14.13.0"],\
|
||||||
["libsodium-wrappers", "npm:0.7.13"],\
|
["libsodium-wrappers", "npm:0.7.13"],\
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
"@discordjs/opus": "0.9.0",
|
"@discordjs/opus": "0.9.0",
|
||||||
"@octokit/auth-token": "4.0.0",
|
"@octokit/auth-token": "4.0.0",
|
||||||
"@octokit/rest": "20.0.2",
|
"@octokit/rest": "20.0.2",
|
||||||
|
"ansi-colors": "4.1.3",
|
||||||
"canvas": "2.11.2",
|
"canvas": "2.11.2",
|
||||||
"chalk": "5.3.0",
|
|
||||||
"discord-player": "6.6.4",
|
"discord-player": "6.6.4",
|
||||||
"discord.js": "14.13.0",
|
"discord.js": "14.13.0",
|
||||||
"libsodium-wrappers": "0.7.13",
|
"libsodium-wrappers": "0.7.13",
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import Discord from 'discord.js';
|
import Discord from 'discord.js';
|
||||||
import TClient from '../client.js';
|
import TClient from '../client.js';
|
||||||
import chalk from 'chalk';
|
import ansi from 'ansi-colors';
|
||||||
export default {
|
export default {
|
||||||
async run(client:TClient){
|
async run(client:TClient){
|
||||||
const botSwitches = Object.entries(client.config.botSwitches).map(([k, v])=>`${chalk.yellow(k)}${chalk.black(':')} ${v}`).join('\n').replace(/true/g, chalk.green('true')).replace(/false/g, chalk.red('false'));
|
const botSwitches = Object.entries(client.config.botSwitches).map(([k, v])=>`${ansi.yellow(k)}${ansi.black(':')} ${v}`).join('\n').replace(/true/g, ansi.green('true')).replace(/false/g, ansi.red('false'));
|
||||||
|
|
||||||
await client.guilds.fetch(client.config.mainServer.id).then(async guild=>{
|
await client.guilds.fetch(client.config.mainServer.id).then(async guild=>{
|
||||||
await guild.members.fetch();
|
await guild.members.fetch();
|
||||||
|
16
yarn.lock
16
yarn.lock
@ -552,6 +552,13 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
"ansi-colors@npm:4.1.3":
|
||||||
|
version: 4.1.3
|
||||||
|
resolution: "ansi-colors@npm:4.1.3"
|
||||||
|
checksum: a9c2ec842038a1fabc7db9ece7d3177e2fe1c5dc6f0c51ecfbf5f39911427b89c00b5dc6b8bd95f82a26e9b16aaae2e83d45f060e98070ce4d1333038edceb0e
|
||||||
|
languageName: node
|
||||||
|
linkType: hard
|
||||||
|
|
||||||
"ansi-regex@npm:^5.0.1":
|
"ansi-regex@npm:^5.0.1":
|
||||||
version: 5.0.1
|
version: 5.0.1
|
||||||
resolution: "ansi-regex@npm:5.0.1"
|
resolution: "ansi-regex@npm:5.0.1"
|
||||||
@ -697,13 +704,6 @@ __metadata:
|
|||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"chalk@npm:5.3.0":
|
|
||||||
version: 5.3.0
|
|
||||||
resolution: "chalk@npm:5.3.0"
|
|
||||||
checksum: 623922e077b7d1e9dedaea6f8b9e9352921f8ae3afe739132e0e00c275971bdd331268183b2628cf4ab1727c45ea1f28d7e24ac23ce1db1eb653c414ca8a5a80
|
|
||||||
languageName: node
|
|
||||||
linkType: hard
|
|
||||||
|
|
||||||
"chownr@npm:^2.0.0":
|
"chownr@npm:^2.0.0":
|
||||||
version: 2.0.0
|
version: 2.0.0
|
||||||
resolution: "chownr@npm:2.0.0"
|
resolution: "chownr@npm:2.0.0"
|
||||||
@ -806,8 +806,8 @@ __metadata:
|
|||||||
"@types/ms": 0.7.32
|
"@types/ms": 0.7.32
|
||||||
"@types/node": 20.8.2
|
"@types/node": 20.8.2
|
||||||
"@types/node-cron": 3.0.9
|
"@types/node-cron": 3.0.9
|
||||||
|
ansi-colors: 4.1.3
|
||||||
canvas: 2.11.2
|
canvas: 2.11.2
|
||||||
chalk: 5.3.0
|
|
||||||
discord-player: 6.6.4
|
discord-player: 6.6.4
|
||||||
discord.js: 14.13.0
|
discord.js: 14.13.0
|
||||||
libsodium-wrappers: 0.7.13
|
libsodium-wrappers: 0.7.13
|
||||||
|
Loading…
Reference in New Issue
Block a user