public CommandCounter CommandGetUserCounter(string userLogin, Platform platform, string commandId)
No description provided.
No description provided.
No description provided.
Streamer.bot.Plugin.Interface.Model.CommandCounter
using System;
public class CPHInline
{
public bool Execute()
{
//Define specified command via command id
string commandId = "4fcc2d13-9bcf-4c18-9d91-821a15f4b6e5";
//Get current user login
CPH.TryGetArg("userName",out string userName);
//Get current platform of user
CPH.TryGetArg("userType",out string userType);
Enum.TryParse(userType, out Platform platform);
//Get CommandCounter
CommandCounter commandCounterInfo = CPH.CommandGetUserCounter(userName, platform, commandId); //Get command user count
int numberOfUses = commandCounterInfo.Count;
return true;
}
}