Skip to Content
ModulesActivities and rewards

Subscription tasks

The SocialTasks module: rewards for joining the project's channels, servers and groups on Telegram, Discord, VK, Steam, YouTube and Twitch, checked on the network itself.

A player joins a Telegram channel, a Discord server or a project group and gets a reward. The site asks the network itself whether the player is among the members, and checks again from time to time. If the player leaves and does not come back in time, the reward is taken back.

The Subscription bonuses page with the available tasks
DependenciesGamesPermissionsStudio blocksBot commandsCron tasks
Flute 2.0, the Rewards module; optionally Questsnot tied to a gameadmin.social_tasks, admin.social_tasks.view"Subscription tasks" (social.tasks), "Subscription task progress" (social.progress)nonefour, below

Where the module shows up

PlaceWhat is there
/social-bonusthe "Subscription bonuses" page: "Available tasks", "Completed" and "How it works". The "Subscription bonuses" item of the site menu appears once tasks are on
Account menu"Subscription bonuses" with the number of tasks left
Profile on the sitethe "Bonuses" tab and a card on the overview, visible to the player only
AdminSubscription tasksthe tasks with their funnel, "Reward for every task", "Who may do tasks"
AdminSubscription tasksSettingsmodule settings, at /admin/modules/SocialTasks/settings
Player card in the adminthe "Subscription tasks" tab and the "Recheck subscriptions" action
Admin home"Subscription rewards this week" and signals about networks that stopped answering

Which networks are checked

The network is picked in the task's "Network" field. Until the site is connected to it, the option says "not set up", and the "Set up checking" button leads to the place where that is done.

NetworkWhat the site needsTask targetWhat the player needs
"Telegram"the site's Telegram bot as a channel admin"Channel or group": @name or ida linked Telegram
"Discord"the site's Discord bot on that server"Discord server ID"a linked Discord
"VK""Service key of a VK application" in the module settings"VK community", an open groupa linked VK
"Steam group"the site's Steam key"Steam group ID (64-bit)"Steam sign-in, a public profile
"YouTube channel"Google sign-in and YouTube Data API v3 in the same Google Cloud project"YouTube channel ID"a linked Google
"Twitch channel"Twitch sign-in"Twitch channel"a linked Twitch
"Link visit"nothing, there is no checknonenothing

A "Link visit" task is not checked, so it cannot give money and is never rechecked. Each YouTube check spends one unit of the daily Google quota, which is 10,000 a day.

Install and first setup

Install the module from the marketplace together with Rewards, as described in first steps; every install option is in Installing modules. Tasks stay off until you turn them on yourself, so you can prepare them in advance.

Connect the networks

The Telegram and Discord bots are connected in AdminBots, see Telegram and Discord bots. Steam, Google and Twitch sign-in, which the site uses to know players' accounts, is set up in AdminSign-in methods, see Sign-in methods.

Set the common rules

On AdminSubscription tasks there are two blocks below the tasks. "Who may do tasks" by default requires "A game account is linked" with Steam and "Age of the account" of at least 3 days. "Reward for every task" is given once, when every active task is done.

Create a task and turn the module on

Building a task is shown below on Telegram. When it is ready, turn on "Tasks on" in the settings. While the module is off, the tasks screen shows "Tasks are turned off" with a "Turn on tasks" button.

The Subscription tasks screen with the task funnel

A reward for joining a Telegram channel

Make the site's bot a channel admin

Connect the bot on the "Telegram" tab of AdminBots. Then, in Telegram itself, add that bot to the channel as an administrator: that is the only way the bot can check channel members.

Create the task

Open AdminSubscription tasks and press "New task". In the "Network and target" block set "Network" to "Telegram", type @your_channel in "Channel or group" and https://t.me/your_channel in "Link for the player". The link has to lead to t.me or telegram.me.

Design it and set the reward

Under "How it looks" fill in "Title", for example "Join the project channel", and optionally "Description", "Cover" and "Medal". In the "Reward" block pick one reward in the Rewards editor, for example "Site coins" with "Quantity" 100.

Set who sees it

Under "Showing and rechecks" set "Shown to" to "Staff only" so you can try the task before launch. Keep "Recheck and take back" on. An empty "Own time to come back, hours" takes the time from the settings, and "Starts" and "Ends" limit the task to dates. Press "Create task": the site checks that the bot sees the channel and is an admin there.

Do the task yourself

Turn on "Tasks on". The common rules apply to you too: with the default ones your account needs a linked Steam and must be at least 3 days old. In your profile connect Telegram: "Connect Telegram", then Start in the bot. On /social-bonus press "Do it", join through "Open Telegram", come back and press "Check". The answer "Subscription confirmed, the reward is yours." means everything works.

Check the result and open it to everybody

On the task page "Subscribed now" goes up, and the "Done by" table lists your Telegram account. The Grants journal shows a grant with the source "Subscription tasks". Then switch "Shown to" to "Everybody".

The task page with the Subscribed now count and the Done by table

One Telegram account gets the reward for a task once. If it already did the task on another site account, the player sees "This social account has already got the reward for this task."

When a player leaves

The site rechecks a done task every 7 days, give or take 10 %. If the player is no longer a member, the time to come back starts, 72 hours by default. The player gets the "You left" notice and sees "Come back by …" on the task card with an "I joined again" button.

If the player does not come back by the end of that time, the reward is taken back together with the "Reward for every task", the player gets "Reward taken back", and the task cannot be done again. If the network does not answer, nothing is taken back: the time to come back is extended by a day until the network answers.

A reward that was already spent is handled by "When the reward is already spent". With "Withhold from the next rewards" the gap comes off the next money rewards of tasks, with "Forgive" it is dropped. The balance never goes below zero.

Staff handle disputed cases on the task page, in the "Done by" table:

ActionWhat happens
"Check now"the player's subscription is asked of the network right now
"Take back"the reward is taken back with a "Reason" that other administrators see
"Annul, keep the reward"the completion is removed, the reward stays with the player
"Check everybody now" in the page headereverybody who did the task is rechecked. Those who left get time to come back

In the player card, "Recheck subscriptions" does the same for all of the player's tasks.

Rewards are handed out by the Rewards module: every grant lands in its "Grants" log, and whatever did not reach the game is retried by the site. If Quests is installed, SocialTasks adds the "Subscription tasks done" (social.tasks) metric to the "What is counted" field, so you can build a quest such as "complete three subscription tasks". Without Quests the module works the same, the metric is just missing from the list.

A reward taken back lowers the metric again. On FiveM and RedM servers with the Tebex module the "Subscription tasks" source is allowed by default, so task rewards reach those servers.

Settings

AdminSubscription tasksSettings
FieldWhat it changesDefault
"Tasks on"when off, tasks are neither shown nor doneoff
"Own page of the tasks"the separate /social-bonus pageon
"Item in the account menu"with a counter of tasks lefton
"Tab and card in the profile"the "Bonuses" tab on the profileon
"Recheck every, days"1 to 3657
"Time to come back, hours"1 to 720, a task may have its own72
"Checks per run and network"more means faster rounds and more requests200
"When the reward is already spent""Withhold from the next rewards" or "Forgive""Withhold from the next rewards"
"Service key of a VK application"the key of an app on dev.vk.com; without it VK groups are not checkedempty

Permissions

PermissionWhat it gives
admin.social_taskscreate and change tasks, take rewards back, module settings; includes admin.social_tasks.view
admin.social_tasks.viewsee tasks, the funnel and who did them

Background tasks

Shown in AdminScheduler and run only while the scheduler fires once a minute.

TaskHow often
"Subscription tasks: recheck"every 10 minutes
"Subscription tasks: end of the time to come back"every 10 minutes
"Subscription tasks: state of the networks"every hour
"Subscription tasks: counter cleanup"once a day, at 04:20

For developers

The reward source in Rewards is called social. A network of your own implements Contracts\MembershipVerifier and is registered in Services\VerifierRegistry. Events: flute.social.task_completed, flute.social.grace_started, flute.social.task_restored, flute.social.task_revoked. Webhooks: social.task_completed ("A subscription task was done") and social.task_revoked ("A subscription reward was taken back").

GET /api/v1/social-tasks/me/state returns the player's tasks and their state for a key with the social:read scope. Custom Studio components get the social_tasks data source: the tasks open to everybody.

How the core side works: Events and listeners, API keys and the REST API, Module REST API, Extension points, Studio data source.

Troubleshooting

For any other message, use the error lookup.

The site's bot is not an administrator of this channel, so it cannot check subscriptions.

The form answers this when you save a Telegram task. Add the site's bot to the channel as an administrator and save the task again. "Channel or group" must name the same channel, as @name or a numeric id.

Subscription check does not work

This warning sits on the task page. Either the task's network is no longer connected to the site, or the last check could not open the task's target. While the network is silent, rewards are not taken back.

MessageWhat to do
"Checking through this network is not set up on the site."connect the network, see the table above
"Link Steam in the profile settings."the player hits the common "A game account is linked" rule; change "Who may do tasks" if Steam is not needed
"You are not subscribed. Subscribe and press "Check" again."the network does not see the player among the members
"The check is unavailable right now, try again later."the network did not answer, the player tries later
"A link task is not checked and cannot give money."give the "Link visit" task a reward that is not money
"The task has been done, it can only be switched off."only a task nobody has done can be deleted
"The community is closed, an open group is needed."open the VK group
"No VK service key in the module's settings."fill in "Service key of a VK application"

Next

On this page