diff --git a/bot.ts b/bot.ts index 4b514a4..89a1e72 100644 --- a/bot.ts +++ b/bot.ts @@ -11,7 +11,7 @@ const cliArgs = parse({ // 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] }); diff --git a/package.json b/package.json index 5635da4..27bd8a9 100644 --- a/package.json +++ b/package.json @@ -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",