Browse Source

Allow for specifying announcement author without changing script

pull/1/head
Abheek Dhawan 4 years ago
parent
commit
261ceeeaba
  1. 2
      bot/awesomescibo.mjs
  2. 2
      bot/package.json

2
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');

2
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"

Loading…
Cancel
Save