This plugin adds support for Ko-fi events and related variables to Firebot.
- Firebot 5.65 or higher
- Ko-fi webhook verification token
- NOTE: This is a sensitive value. Treat it like a password and keep it safe!
- You can find this in your Ko-fi account under More > API > Webhooks > Advanced > Verification Token
- Copy the
firebot-kofi.jsfile into your Firebot profile'sscriptsfolder (e.g.%appdata%\Firebot\v5\profiles\Main Profile\scripts) - Go to Settings > Scripts in Firebot
- Click on "Manage Startup Scripts"
- Click "Add New Script"
- Select the
firebot-kofi.jsfile from the dropdown list - Click "Add & Configure"
- Enter your Ko-fi webhook verification token in the Verification Token field
- Click the "Copy URL" button under "Webhook URL", click "Save", then close the "Startup Scripts" modal
- In your Ko-fi account, under More > API > Webhooks, paste the copied URL into the Webhook URL field and click "Update"
New events:
- Ko-fi: Donation
- Ko-fi: Subscription
- Ko-fi: Shop Order
Existing Firebot variables with added support for Ko-fi:
$donationAmount$donationFrom$donationMessage
New variables:
$kofiCurrency$kofiEventTimestamp$kofiEventType$kofiIsFirstSubscriptionPayment$kofiIsSubscriptionPayment$kofiMessageId$kofiShopOrderItems$kofiSubscriptionTierName$kofiTransactionId
WARNING: The following variables may contain sensitive/private data. Use with caution!
$kofiDonorDiscordUserId$kofiDonorDiscordUsername$kofiDonorEmail$kofiTransactionUrl$kofiVerificationToken