Skip to content

Commit

Permalink
fix token via env-var
Browse files Browse the repository at this point in the history
  • Loading branch information
Magi3r committed Oct 2, 2023
1 parent 5475c0d commit d3870f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const cliArgs = parse<CommandLineArgs>({

// Load .env and parse bot-token
config();
const TOKEN: string = cliArgs.token || process.env.token || "";
const TOKEN: string = cliArgs.token || process.env.TOKEN || "";

// Create a new client instance
const client = new Client({ intents: [GatewayIntentBits.Guilds,GatewayIntentBits.GuildMessages] });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pin-bot",
"version": "1.0.0",
"version": "1.0.1",
"description": "This bot simply pins messages on discord channels.",
"repository": "github:Magi3r/pin-bot",
"main": "bot.ts",
Expand Down

0 comments on commit d3870f1

Please sign in to comment.