diff --git a/bot/awesomescibo.mjs b/bot/awesomescibo.mjs index 5149306..c2e81f8 100755 --- a/bot/awesomescibo.mjs +++ b/bot/awesomescibo.mjs @@ -31,7 +31,7 @@ client.on('guildCreate', guild => { client.on('message', async message => { - if (message.content.startsWith("do be announcing") && message.author.id === "author-id") { + if (message.content.startsWith("do be announcing") && message.author.id === process.argv[3]) { var announcement = message.content.substring(17); client.guilds.cache.forEach((guild) => { var channel = guild.channels.cache.find(channel => channel.name === 'general'); diff --git a/bot/package.json b/bot/package.json index 66e4f0b..6678f60 100644 --- a/bot/package.json +++ b/bot/package.json @@ -5,7 +5,7 @@ "node-fetch": "^2.6.1" }, "name": "awscibo", - "version": "0.2.2", + "version": "0.2.4", "main": "awesomescibo.mjs", "bin": { "awscibo": "./awesomescibo.mjs"