Skip to content

Geekeh/Phone-Notification-For-Roblox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

📝Setup

image This is your user key, you will need it for setting this up

  • Scroll down to the bottom of the website and click "Create an Application/API Token"

image

  • This will give you your api token and show you all the stats

image

  • Download the push over app on your phone

  • Sign into the same account you made on the push over website

This is the basic code on how to use the module

local NotiHandler = require(ReplicatedStorage.PushOverHandler)
NotiHandler:Init("user key or group key", "api token")

NotiHandler:SendMessage(`Sent from a roblox game!`)

This is how you setup notis for dev product purchases

This is using the processReceipt function from the roblox docs

local NotiHandler = require(ReplicatedStorage.PushOverHandler)
NotiHandler:Init("user key or group key", "api token")
local randomGamePassId = 3243599842 -- change with your gamepass

-- Random Game Pass
productFunctions[randomGamePassId] = function(receipt, player)
    local character = player.Character
    local humanoid = character and character:FindFirstChildWhichIsA("Humanoid")

    if humanoid then
        print(`{player.DisplayName} bought a dev product`)
    end
end

local function processReceipt(receiptInfo)
    local userId = receiptInfo.PlayerId
    local productId = receiptInfo.ProductId
    local player = Players:GetPlayerByUserId(userId)
    if player then
        local handler = productFunctions[productId]
        local success, result = pcall(handler, receiptInfo, player)
		
        if success then
            local devProductInfo = MarketplaceService:GetProductInfo(productId, Enum.InfoType.Product)
            NotiHandler:SendMessage(`{player.Name} just bought {devProductInfo.Name} for {devProductInfo.PriceInRobux} Robux`)
            return Enum.ProductPurchaseDecision.PurchaseGranted
        else
          warn("Failed to process receipt:", receiptInfo, result)
        end
    end

    return Enum.ProductPurchaseDecision.NotProcessedYet
end

About

A module that makes it really easy to send notis to your phone or any device using push over

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors