Skip to content

Commit

Permalink
refactor: ♻️ don't use global Buffer or process
Browse files Browse the repository at this point in the history
I'm a sucker for "best practices" - nodejs/node#26334
  • Loading branch information
Lioness100 committed Dec 27, 2021
1 parent c34bcb3 commit ae4e833
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/dev/eval.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { isThenable } from '@sapphire/utilities';
import { Stopwatch } from '@sapphire/stopwatch';
import { Command } from '#structures/Command';
import { inspect } from 'node:util';
import { Buffer } from 'node:buffer';
import { Type } from '@sapphire/type';

// In the future, this may be converted to/accompanied with a context menu interaction
Expand Down
1 change: 1 addition & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { cleanEnv, str } from 'envalid';
import process from 'node:process';

export const env = cleanEnv(process.env, {
TOKEN: str({ desc: 'The discord bot token' })
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { GatewayIntentBits } from 'discord-api-types/v9';
import { yellow, green, bold } from 'colorette';
import { Constants } from 'discord.js';
import { env } from '#root/config';
import process from 'node:process';

const client = new SapphireClient({
// Trace loggings clutter the console, and should only be used when debugging @sapphire/pieces specifically
Expand Down

0 comments on commit ae4e833

Please sign in to comment.