Skip to content

Commit c01a340

Browse files
committed
Lots of changes
1 parent e41d789 commit c01a340

30 files changed

+1331
-219
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ npm install
6464
### Step 3 : Replace the Token and other dependencies inside [.env](https://github.com/sandarutharuneth/ivongiveaways/blob/master/.env) <br>
6565
## Follow the [wiki](https://github.com/sandarutharuneth/ivongiveaways/wiki) for additional help
6666
```sh
67-
TOEKN=Your Token goes here
68-
FOTTERIMG=Your Footer Image Link goes here
67+
TOKEN=Your Token goes here
68+
FOOTERIMG=Your Footer Image Link goes here
6969
THUMBNAIL=Your Thumbnail image link goes here
7070
DCBL=https://cdn.discordapp.com/attachments/477946103287906304/482738675776618497/DBL.png
7171
```

commands/about.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports.run = async (client, message, args) => {
2222
)
2323
let about = new MessageEmbed()
2424
.setAuthor({
25-
name: `About IVON`,
25+
name: `About Shift Swap`,
2626
iconURL: client.user.displayAvatarURL()
2727
})
2828
.addField("Property of", "[Project Razer](https://github.com/razerinc)", true)
@@ -34,7 +34,7 @@ module.exports.run = async (client, message, args) => {
3434
"Hosted On",
3535
"[Digital Ocean](https://www.digitalocean.com/)",
3636
true)
37-
.setDescription(`IVON is a Discord giveaway bot that allows you to host giveaways on your servers without the need for an extra pair of hands. Unique role requirements, server join requirements, special role points, and many more options are included to help you save time and effectively run your giveaway.`)
37+
.setDescription('Shift Swap is a Discord giveaway bot that allows you to host giveaways on your servers without the need for an extra pair of hands. Unique role requirements, server join requirements, special role points, and many more options are included to help you save time and effectively run your giveaway.')
3838
.setColor('#2F3136')
3939
.setTimestamp()
4040
.setThumbnail(process.env.THUMBNAIL)

commands/help.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const embed = new MessageEmbed()
3939
.setDescription("```yaml\nHere are the general bot commands:```")
4040
.addFields(
4141
{ name: 'Help' , value: `Show the help menu.\n > **Types: \`-help\`**`, inline: true },
42-
{ name: 'About' , value: `Show About Ivon.\n > **Types: \`-about\`**`, inline: true },
42+
{ name: 'About' , value: `Show About Shift Swap.\n > **Types: \`-about\`**`, inline: true },
4343
{ name: 'Invite' , value: `Get the bot's invite link.\n > **Types: \`-invite\`**`, inline: true },
4444
{ name: 'Ping' , value: `Check the bot's ping!\n > **Types: \`-ping\` **`, inline: true },
4545
{ name: 'Info' , value: `Check the bot's System info.\n > **Types: \`-info\` **`, inline: true },

commands/info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ client.guilds.cache.forEach((guild) => {
2525
);
2626

2727
let server = new MessageEmbed()
28-
.setAuthor({name: "IVON", iconURL: "https://i.imgur.com/JkHM4c3.png"})
28+
.setAuthor({name: "Shift Swap", iconURL: "https://i.imgur.com/JkHM4c3.png"})
2929
.setTitle('Information')
3030
.setColor('#2F3136')
3131
.setThumbnail(process.env.THUMBNAIL)

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"token": "process.env['TOKEN']",
33
"bug": "993594724982214806",
44
"prefix": "/",
5-
"everyoneMention": false,
5+
"everyoneMention": true,
66
"hostedBy": true
77
}

events/giveaways/endedGiveawayReactionAdded.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ const Discord = require("discord.js")
22
module.exports = {
33
async execute(giveaway, member, reaction){
44
reaction.users.remove(member.user);
5-
member.send(`**Aw snap! Looks Like that giveaway has already ended!**`).catch(e => {})
5+
member.send(`**Aw snap! Looks like someone already claimed that shift!**`).catch(e => {})
66
}
77
}

events/giveaways/giveawayEnded.js

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,31 @@ module.exports = {
44
async execute(giveaway, winners) {
55
winners.forEach((member) => {
66
member.send({
7-
components: [new MessageActionRow()
8-
.addComponents(
9-
new MessageButton()
10-
.setLabel("Jump to the Giveaway")
11-
.setStyle("LINK")
12-
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
13-
.setEmoji('973495590921043968'),
14-
new MessageButton()
15-
.setLabel("Vote Me")
16-
.setStyle("LINK")
17-
.setURL("https://discordbotlist.com/bots/ivon/upvote")
18-
.setEmoji('974160940197113916'),
19-
new MessageButton()
20-
.setLabel("Invite Me")
21-
.setStyle("LINK")
22-
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
23-
.setEmoji('984296691794583582'))],
7+
// components: [new MessageActionRow()
8+
// .addComponents(
9+
// new MessageButton()
10+
// .setLabel("Jump to the Giveaway")
11+
// .setStyle("LINK")
12+
// .setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
13+
// .setEmoji('973495590921043968'),
14+
// new MessageButton()
15+
// .setLabel("Vote Me")
16+
// .setStyle("LINK")
17+
// .setURL("https://discordbotlist.com/bots/ivon/upvote")
18+
// .setEmoji('974160940197113916'),
19+
// new MessageButton()
20+
// .setLabel("Invite Me")
21+
// .setStyle("LINK")
22+
// .setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
23+
// .setEmoji('984296691794583582'))],
2424
embeds: [new MessageEmbed()
25-
.setAuthor({name: "Congratulations!", iconURL: "https://i.imgur.com/sB02Hbz.png"})
26-
.setColor("#2F3136")
27-
.setThumbnail(process.env.THUMBNAIL)
28-
.setDescription(`Hello there ${member.user}\n Congrats!! you have won **${giveaway.prize}!**\n DM ${giveaway.hostedBy} to claim your prize!`)
25+
.setAuthor({name: "Shift Claimed!"})
26+
.setColor("#012D3D")
27+
.setDescription(`Hello there ${member.user}\n Congrats!! you've claimed **${giveaway.prize}!**\n Message ${giveaway.hostedBy} to coordinate switching in the schedule.`)
2928
.setImage('https://i.imgur.com/uQFQGrH.png')
3029
.setTimestamp()
3130
.setFooter({
32-
text: `©️ IVON`,
31+
text: `LHL`,
3332
iconURL: (process.env.FOOTERIMG)
3433
})
3534
]

events/giveaways/giveawayReactionAdded.js

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js")
22
module.exports = {
33
async execute(giveaway, reactor, messageReaction) {
4-
const noice = new MessageActionRow()
5-
.addComponents(
6-
new MessageButton()
7-
.setLabel("Vote Me")
8-
.setStyle("LINK")
9-
.setURL("https://discordbotlist.com/bots/ivon/upvote")
10-
.setEmoji('974160940197113916'),
11-
new MessageButton()
12-
.setLabel('Patreon')
13-
.setStyle('LINK')
14-
.setEmoji('1001122523175465061')
15-
.setURL("https://www.patreon.com/projectrazer"),
16-
new MessageButton()
17-
.setLabel("Invite Me")
18-
.setStyle("LINK")
19-
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
20-
.setEmoji('984296691794583582'),
21-
);
4+
// const noice = new MessageActionRow()
5+
// .addComponents(
6+
// new MessageButton()
7+
// .setLabel("Vote Me")
8+
// .setStyle("LINK")
9+
// .setURL("https://discordbotlist.com/bots/ivon/upvote")
10+
// .setEmoji('974160940197113916'),
11+
// new MessageButton()
12+
// .setLabel('Patreon')
13+
// .setStyle('LINK')
14+
// .setEmoji('1001122523175465061')
15+
// .setURL("https://www.patreon.com/projectrazer"),
16+
// new MessageButton()
17+
// .setLabel("Invite Me")
18+
// .setStyle("LINK")
19+
// .setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
20+
// .setEmoji('984296691794583582'),
21+
// );
2222

2323
let approved = new MessageEmbed()
2424
.setTimestamp()
25-
.setColor("#2F3136")
25+
.setColor("#012D3D")
2626
.setAuthor({name: "Entry Confirmed!", iconURL: "https://i.imgur.com/Lf1IHlA.png"})
2727
.setDescription(
28-
`Your entry to **${giveaway.prize}** on [This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}) has been approved! \nEarn extra points by **Voting**. \n Hosted By: ${giveaway.hostedBy}`
28+
`You have entered for a chance to claim **${giveaway.prize}**! \nShift from: ${giveaway.hostedBy}`
2929
)
30-
.setFooter({ text: "©️ IVON", iconURL: (process.env.FOOTERIMG) })
30+
.setFooter({ text: "LHL", iconURL: (process.env.FOOTERIMG) })
3131
.setTimestamp()
3232

33-
const lol = new MessageActionRow()
34-
.addComponents(
35-
new MessageButton()
36-
.setLabel("Vote Me")
37-
.setStyle("LINK")
38-
.setURL("https://discordbotlist.com/bots/ivon/upvote")
39-
.setEmoji('974160940197113916'),
40-
new MessageButton()
41-
.setLabel('Patreon')
42-
.setStyle('LINK')
43-
.setEmoji('1001122523175465061')
44-
.setURL("https://www.patreon.com/projectrazer"),
45-
new MessageButton()
46-
.setLabel("Invite Me")
47-
.setStyle("LINK")
48-
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
49-
.setEmoji('984296691794583582'),
50-
);
33+
// const lol = new MessageActionRow()
34+
// .addComponents(
35+
// new MessageButton()
36+
// .setLabel("Vote Me")
37+
// .setStyle("LINK")
38+
// .setURL("https://discordbotlist.com/bots/ivon/upvote")
39+
// .setEmoji('974160940197113916'),
40+
// new MessageButton()
41+
// .setLabel('Patreon')
42+
// .setStyle('LINK')
43+
// .setEmoji('1001122523175465061')
44+
// .setURL("https://www.patreon.com/projectrazer"),
45+
// new MessageButton()
46+
// .setLabel("Invite Me")
47+
// .setStyle("LINK")
48+
// .setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
49+
// .setEmoji('984296691794583582'),
50+
// );
5151

5252
let denied = new MessageEmbed()
5353
.setTimestamp()
5454
.setColor("#2F3136")
5555
.setAuthor({name: "Entry Denied!", iconURL: "https://i.imgur.com/Jjo00oT.png"})
5656
.setDescription(
57-
`Your entry to **${giveaway.prize}** on [This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}) has been denied! \nPlease review the requirements to enter the giveaway properly. \n Hosted By: ${giveaway.hostedBy}`
57+
`You could not be entered to claim **${giveaway.prize}**. \nPlease message an admin if you get this message. \n Shift from: ${giveaway.hostedBy}`
5858
)
59-
.setFooter({ text: "©️ IVON", iconURL: (process.env.FOOTERIMG) })
59+
.setFooter({ text: "LHL", iconURL: (process.env.FOOTERIMG) })
6060

6161
let client = messageReaction.message.client
6262
if (reactor.user.bot) return;

events/giveaways/giveawayReactionRemoved.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@ const { MessageEmbed, MessageButton, MessageActionRow } = require("discord.js")
22
module.exports = {
33
async execute(giveaway, member) {
44
return member.send({
5-
components: [new MessageActionRow()
6-
.addComponents(
7-
new MessageButton()
8-
.setLabel("Jump to the Giveaway")
9-
.setStyle("LINK")
10-
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
11-
.setEmoji('973495590921043968'))],
5+
// components: [new MessageActionRow()
6+
// .addComponents(
7+
// new MessageButton()
8+
// .setLabel("Jump to the Giveaway")
9+
// .setStyle("LINK")
10+
// .setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
11+
// .setEmoji('973495590921043968'))],
1212
embeds: [new MessageEmbed()
1313
.setTimestamp()
1414
.setAuthor({name: "Reaction Removed!", iconURL: "https://i.imgur.com/Jjo00oT.png"})
15-
.setTitle('Did You Just Remove a Reaction From A Giveaway?')
15+
.setTitle(`You removed your reaction from **${giveaway.prize}**!`)
1616
.setColor("#2F3136")
1717
.setDescription(
18-
`Your entery to **${giveaway.prize}** on [This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}) have been removed!\n This means you're removed as a valid giveaway participant.\n Think It was a mistake? **Go react again!**`
18+
`Your reaction to **${giveaway.prize}** on has been removed!\n This means you're removed as a valid mantor to claim the shift.\n Think It was a mistake? **Go react again!**`
1919
)
20-
.setFooter({ text: "©️ IVON", iconURL: (process.env.FOOTERIMG) })
20+
.setFooter({ text: "LHL", iconURL: (process.env.FOOTERIMG) })
2121
]
2222
}).catch(e => {})
2323

events/giveaways/giveawayRerolled.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@ module.exports = {
33
async execute(giveaway, winners) {
44
winners.forEach((member) => {
55
member.send({
6-
components: [new MessageActionRow()
7-
.addComponents(
8-
new MessageButton()
9-
.setLabel("Jump to the Giveaway")
10-
.setStyle("LINK")
11-
.setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
12-
.setEmoji('973495590921043968'),
13-
new MessageButton()
14-
.setLabel("Vote Me")
15-
.setStyle("LINK")
16-
.setURL("https://discordbotlist.com/bots/ivon/upvote")
17-
.setEmoji('974160940197113916'),
18-
new MessageButton()
19-
.setLabel("Invite Me")
20-
.setStyle("LINK")
21-
.setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
22-
.setEmoji('984296691794583582'))],
6+
// components: [new MessageActionRow()
7+
// .addComponents(
8+
// new MessageButton()
9+
// .setLabel("Jump to the Giveaway")
10+
// .setStyle("LINK")
11+
// .setURL(`https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId}`)
12+
// .setEmoji('973495590921043968'),
13+
// new MessageButton()
14+
// .setLabel("Vote Me")
15+
// .setStyle("LINK")
16+
// .setURL("https://discordbotlist.com/bots/ivon/upvote")
17+
// .setEmoji('974160940197113916'),
18+
// new MessageButton()
19+
// .setLabel("Invite Me")
20+
// .setStyle("LINK")
21+
// .setURL("https://discord.com/api/oauth2/authorize?client_id=973436715819745290&permissions=406881561681&scope=bot%20applications.commands")
22+
// .setEmoji('984296691794583582'))],
2323
embeds: [new MessageEmbed()
2424
.setAuthor({name: "Congratulations!", iconURL: (process.env.THUMBNAIL)})
2525
.setThumbnail(process.env.THUMBNAIL)
2626
.setColor("#2F3136")
27-
.setDescription(`Hello there ${member.user}\n Host of the giveaway rerolled and you have won the Giveaway on **[This Server](https://discord.com/channels/${giveaway.guildId}/${giveaway.channelId}/${giveaway.messageId})**\nGood Job On Winning **${giveaway.prize}!**\n DM ${giveaway.hostedBy} to claim your prize!!`)
27+
.setDescription(`Hello there ${member.user}\n ${giveaway.hostedBy} rerolled ${giveaway.prize} and you have claimed won it! \nPlease coordinate with them to change the schedule.`)
2828
.setTimestamp()
2929
.setFooter({
30-
text: "©️ IVON",
30+
text: "LHL",
3131
iconURL: (process.env.FOOTERIMG)
3232
})
3333
]

0 commit comments

Comments
 (0)