Compare commits

...
3 Commits
Author SHA1 Message Date
ItzEmerald 0827f55d43 Update guildMemberAdd.js 2021-03-31 01:21:34 +01:00
ItzEmerald ba6ff8c342 Update node.js.yml 2021-03-31 00:28:35 +01:00
ItzEmerald c0b7dc2737 Create node.js.yml 2021-03-31 00:27:10 +01:00
2 changed files with 34 additions and 1 deletions

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm install discord.js --save
- run: npm install js-yaml
- run: npm run build --if-present
- run: node index.js
+2 -1
View File
@@ -22,9 +22,10 @@ module.exports = async (bot, member) => {
member.roles.add(role).catch(console.error); member.roles.add(role).catch(console.error);
if (supportbot.SystemMessage_Type === "embed") { if (supportbot.SystemMessage_Type === "embed") {
const GuildAddMember = new Discord.MessageEmbed() const GuildAddMember = new Discord.MessageEmbed()
.setTitle(supportbot.Welcome_Title) .setTitle(supportbot.Welcome_Title)
.setDescription(supportbot.WelcomeMessage.replace(/%member%/g, member.user.id).replace(/%guildname%/g, member.guild.name)) .setDescription(supportbot.WelcomeMessage.replace(/%member%/g, `<@!${member.user.id}>`).replace(/%guildname%/g, member.guild.name))
.setColor(supportbot.EmbedColour) .setColor(supportbot.EmbedColour)
if (supportbot.SystemMessage_Icon === "BOT") { if (supportbot.SystemMessage_Icon === "BOT") {