hullcss-discord-bot/commands/embeds/welcome.js

44 lines
2.2 KiB
JavaScript
Raw Normal View History

2022-05-11 21:37:08 +01:00
const discord = require("discord.js");
2022-05-11 20:48:08 +01:00
module.exports = {
name: "welcome",
aliases: [''],
/**
*
* @param {Client} client
* @param {Message} message
* @param {String[]} args
*/
run: async (client, message, args) => {
2022-05-11 21:37:08 +01:00
const embed = new discord.MessageEmbed()
2022-05-11 20:48:08 +01:00
.setColor('GREEN')
2022-07-01 18:46:51 +01:00
.setFooter({ text: `Called By: ${message.author.tag}`})
2022-05-11 20:48:08 +01:00
.setTimestamp()
.setTitle("Welcome!")
.setDescription(`We're the official student-run Computer Science Society at Hull, set up with the aim of providing engaging events for students with an interest in Computer Science. This basically means our role is to make life outside of your course as fun and interesting as possible, organising both social and technical events for you.`)
2022-05-11 21:13:11 +01:00
.setThumbnail('https://i.imgur.com/ww6wKwJ.png')
2022-05-23 10:32:51 +01:00
.addField('Exec Members', `President - <@261607869068214272>.\r\nSecretary - <@265925073926488064>.\r\nTreasurer - <@354324259629170700>.\r\nSocial Secretary - NA.\r\n Publicity Officer - <@328928794364870656>.\r\nWebmaster - <@449573875743981569>.\r\n\r\n\r\n`)
2022-07-25 15:16:47 +01:00
.addField('Our Site', `https://hullcss.org/`)
2022-05-11 21:13:11 +01:00
.addField('Gain Access', `To gain access to the server, you will need to have a read of the code of conduct, found here: https://github.com/hullcss/conduct/ and react to the check mark below.\r\n \r\n **All Members, including Community are required to read this policy to access the server.**`)
2022-05-11 20:48:08 +01:00
.addField('Confirmation', 'By reacting with the check mark, you confirm that you have read the #hullcss Code of Conduct')
2022-05-11 21:37:08 +01:00
const row = new discord.MessageActionRow()
.addComponents(
2022-05-11 22:11:18 +01:00
new discord.MessageButton()
.setURL('https://github.com/hullcss/conduct/')
.setEmoji('')
.setLabel('Code of Conduct')
.setStyle('LINK')
)
.addComponents(
2022-05-11 21:37:08 +01:00
new discord.MessageButton()
2022-05-11 22:11:18 +01:00
.setCustomId('codeOfConduct')
.setEmoji('✅')
.setLabel(' I have read the code of conduct!')
.setStyle('SUCCESS')
)
2022-05-11 21:37:08 +01:00
message.channel.send({ embeds: [embed], components: [row] })
2022-05-11 20:48:08 +01:00
},
};