
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
This helper for Tiltify is meant to act as an extension streamers' twitch bots in order to make interfacing with the Tiltify Donations platform more easily.
If you like what you see, consider visiting my patreon, or visit my twitch page for a paypal donation link.
This is under VERY heavy development. Please visit GitHub for up-to-date developments as we push toward release.
Causes Module Implemented with Fetch Endpoint to begin with, further functionality to come. (Documentation is slightly behind here) This "fetch" protocol to acquire individual information bits such as name, description, etc. about individual campaigns.
npm install tiltify
const tiltify = require(`tiltify`);
const config = require('./config'); // Great to store variables safely
const tmi = require('tmi.js'); // Recommended for chat functionality, though not strictly necessary to function.
const client = new tmi.client(config);
let tiltifyOpts = {
access_token: `************************************************`,
campaign_id: `*****`
}
const Tiltify = require(`tiltify`);
// Call once per command
const tiltify = new Tiltify(tiltifyOpts.access_token);
tiltify.Campaigns.getLastDonation(tiltifyOpts.campaign_id, function (err, result) {
if (result.comment) {
client.action(channel, `Last Donation: ${result.name} donated $${result.amount}! "${result.comment}"`)
} else {
client.action(channel, `Last Donation: ${result.name} donated $${result.amount}! curseLit`)
}
});
tiltify.Campaigns.getRewards(tiltifyOpts.campaign_id, function (err, result) {
result.forEach((data) => {
client.action(channel, `${data.name} Unlocked! ${data.remaining} Remain to be claimed! curseLit`)
}
});
Option 1 [multi-point fetch]
tiltify.Campaigns.fetch(campaign_id, function (err, campaign) {
client.action(channel, `Welcome To ${campaign.name}! Donate here: ${campaign.url}`)
});
Option 2 [Single-point fetch]
tiltify.Campaigns.fetch(`name`, tiltifyOpts.campaign_id, function (err, result) {
client.action(channel, `Currently Raising Money for ${data}! Donate at the link below.`)
});
tiltify.Causes.fetch(campaign.causeId, function (err, cause) {
client.action(channel, `${channel.slice(1)} is currently Raising Money for ${cause.name} as part of the ${campaign.name}! ${cause.about}`)
})
Developed by Cazgem for personal use at (https://twitch.tv/cazgem) as well as for his chatbot, Polyphony.
Started: Oct 18, 2020
FAQs
Tiltify API Interface
We found that tiltify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.