C# Class wmib.Extensions.Infobot

Afficher le fichier Open project: benapetr/wikimedia-bot Class Usage Examples

Méthodes publiques

Свойство Type Description
Aliases List
DefaultPrefix string
Keys List
NA System.DateTime
ReplyChan Channel
Sensitive bool
SnapshotManager System.Thread
datafile_raw string
datafile_xml string
pChannel Channel
prefix string
stored bool
temporary_data string
update bool

Méthodes publiques

Méthode Description
AliasExists ( string name, bool sensitive = true ) : bool
CreateSnapshot ( Channel chan, string name ) : void
Find ( string key, Channel Chan ) : void
GetKey ( string name, bool sensitive = true ) : InfobotKey
Infobot ( string database, Channel channel, Module module, bool sensitive = true ) : System
InfobotDetail ( string key, Channel chan ) : void

@infobot-detail

InfobotExec ( string message, libirc user, Channel chan ) : bool

Print a value to channel if found, this message doesn't need to be a valid command for it to work

IsIgnored ( string name, Channel channel ) : bool

Determines whether this key is ignored for channel

IsValid ( string name ) : bool
KeyExists ( string name, bool sensitive = true ) : bool

Function returns true if key exists

Linkable ( Channel host, Channel guest ) : bool
LoadAncientDB ( ) : bool
LoadData ( ) : bool
RSearch ( string key, Channel Chan ) : void

Search

RecoverSnapshot ( Channel chan, string name ) : void
RecoverStart ( ) : void
Save ( ) : void

Save to a file

SetKey ( string Text, string key, string user, Channel chan, bool isact ) : void

Save a new key

SetRaw ( string key, string user, Channel chan ) : void
SnapshotStart ( ) : void
SortedItem ( ) : List
StoreDB ( ) : void

Stores all data to database delayed using different thread

UnsetRaw ( string key, string user, Channel chan ) : void

Private Methods

Méthode Description
DeleteKey ( string key ) : bool
DeliverKey ( InfobotKey Key, string OriginalText, Channel chan, libirc fu ) : bool
ParseInfo ( List parameters, string original, InfobotKey Key, libirc fu ) : string
RetrieveMasterDBChannel ( Channel chan ) : Channel

Retrieves the master DB channel

StartSearch ( ) : void
aliasKey ( string key, string al, string user, Channel chan, bool enforced = false ) : void

Alias

replaceKey ( string Text, string key, string user, Channel chan ) : void
rmKey ( string key, string user, Channel _ch ) : void

Method Details

AliasExists() public méthode

public AliasExists ( string name, bool sensitive = true ) : bool
name string
sensitive bool
Résultat bool

CreateSnapshot() public méthode

public CreateSnapshot ( Channel chan, string name ) : void
chan Channel
name string
Résultat void

Find() public méthode

public Find ( string key, Channel Chan ) : void
key string
Chan Channel
Résultat void

GetKey() public méthode

public GetKey ( string name, bool sensitive = true ) : InfobotKey
name string
sensitive bool
Résultat InfobotKey

Infobot() public méthode

public Infobot ( string database, Channel channel, Module module, bool sensitive = true ) : System
database string
channel Channel
module Module
sensitive bool
Résultat System

InfobotDetail() public méthode

@infobot-detail
public InfobotDetail ( string key, Channel chan ) : void
key string
chan Channel
Résultat void

InfobotExec() public méthode

Print a value to channel if found, this message doesn't need to be a valid command for it to work
public InfobotExec ( string message, libirc user, Channel chan ) : bool
message string Message
user libirc User
chan Channel Channel
Résultat bool

IsIgnored() public méthode

Determines whether this key is ignored for channel
public IsIgnored ( string name, Channel channel ) : bool
name string /// If set to true name. ///
channel Channel
Résultat bool

IsValid() public méthode

public IsValid ( string name ) : bool
name string
Résultat bool

KeyExists() public méthode

Function returns true if key exists
public KeyExists ( string name, bool sensitive = true ) : bool
name string Name of key
sensitive bool If bot is sensitive or not
Résultat bool

Linkable() public static méthode

public static Linkable ( Channel host, Channel guest ) : bool
host Channel
guest Channel
Résultat bool

LoadAncientDB() public méthode

public LoadAncientDB ( ) : bool
Résultat bool

LoadData() public méthode

public LoadData ( ) : bool
Résultat bool

RSearch() public méthode

Search
public RSearch ( string key, Channel Chan ) : void
key string Key
Chan Channel
Résultat void

RecoverSnapshot() public méthode

public RecoverSnapshot ( Channel chan, string name ) : void
chan Channel
name string
Résultat void

RecoverStart() public méthode

public RecoverStart ( ) : void
Résultat void

Save() public méthode

Save to a file
public Save ( ) : void
Résultat void

SetKey() public méthode

Save a new key
public SetKey ( string Text, string key, string user, Channel chan, bool isact ) : void
Text string Text
key string Key
user string User who created it
chan Channel
isact bool
Résultat void

SetRaw() public méthode

public SetRaw ( string key, string user, Channel chan ) : void
key string
user string
chan Channel
Résultat void

SnapshotStart() public méthode

public SnapshotStart ( ) : void
Résultat void

SortedItem() public méthode

public SortedItem ( ) : List
Résultat List

StoreDB() public méthode

Stores all data to database delayed using different thread
public StoreDB ( ) : void
Résultat void

UnsetRaw() public méthode

public UnsetRaw ( string key, string user, Channel chan ) : void
key string
user string
chan Channel
Résultat void

Property Details

Aliases public_oe property

List of all aliases we want to use
public List Aliases
Résultat List

DefaultPrefix public_oe static_oe property

public static string DefaultPrefix
Résultat string

Keys public_oe property

List of all items in class
public List Keys
Résultat List

NA public_oe static_oe property

public static DateTime,System NA
Résultat System.DateTime

ReplyChan public_oe static_oe property

public static Channel ReplyChan
Résultat Channel

Sensitive public_oe property

public bool Sensitive
Résultat bool

SnapshotManager public_oe property

public Thread,System SnapshotManager
Résultat System.Thread

datafile_raw public_oe property

Data file
public string datafile_raw
Résultat string

datafile_xml public_oe property

public string datafile_xml
Résultat string

pChannel public_oe property

public Channel pChannel
Résultat Channel

prefix public_oe property

public string prefix
Résultat string

stored public_oe property

public bool stored
Résultat bool

temporary_data public_oe property

public string temporary_data
Résultat string

update public_oe property

public bool update
Résultat bool