Class BlockKeycheck
A block that changes the bot status according to some conditions.
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: RuriLib
Assembly: RuriLib.dll
Syntax
public class BlockKeycheck : BlockBase, INotifyPropertyChanged
Constructors
| Improve this Doc View SourceBlockKeycheck()
Creates a KeyCheck block.
Declaration
public BlockKeycheck()
Fields
| Improve this Doc View SourceKeyChains
The list of all keychains.
Declaration
public List<KeyChain> KeyChains
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<KeyChain> |
Properties
| Improve this Doc View SourceBanOn4XX
Whether to set the bot status to BAN if the last HTTP code was of type 4.
Declaration
public bool BanOn4XX { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
BanOnToCheck
Whether to set the bot status as BAN if no keychain was valid.
Declaration
public bool BanOnToCheck { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceFromLS(String)
Builds a block from a line of LoliScript code.
Declaration
public override BlockBase FromLS(string line)
Parameters
Type | Name | Description |
---|---|---|
System.String | line | The line of LoliScript code |
Returns
Type | Description |
---|---|
BlockBase | The parsed block object |
Overrides
| Improve this Doc View SourceProcess(BotData)
Executes the actual block logic.
Declaration
public override void Process(BotData data)
Parameters
Type | Name | Description |
---|---|---|
BotData | data | The BotData needed for variable replacement |
Overrides
| Improve this Doc View SourceToLS(Boolean)
Converts the block to LoliScript code.
Declaration
public override string ToLS(bool indent = true)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | indent |
Returns
Type | Description |
---|---|
System.String |
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged