diff --git a/discord/discord.go b/discord/discord.go index 24007c14..334077c3 100644 --- a/discord/discord.go +++ b/discord/discord.go @@ -239,6 +239,11 @@ func (b *Bot) messageHandler(s *discordgo.Session, m *discordgo.MessageCreate) { return } + if referral.DiscordID == m.Author.ID { + _, _ = s.ChannelMessageSendReply(m.ChannelID, "Sorry, You can't be your own referral😔", m.Reference()) + return + } + if pubKey != "" { // check available balance balance := b.faucetWallet.GetBalance()