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')
.setFooter(`Called By: ${message.author.tag}`)
.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')
.addField('Exec Members', `President - <@261607869068214272>.\r\n Secretary - <@265925073926488064>.\r\n Treasurer - <@354324259629170700>.\r\n Social Secretary - NA.\r\n Publicity Officer - <@328928794364870656>.\r\n Webmaster - <@449573875743981569>.\r\n\r\n\r\n`)
.addField('Our Links', `https://hullcss.org/links`)
.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
},
};