C# Класс ALFAIRCBot.ALFAIRCBot

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ALFAIRCBot ( ) : System
Run ( ) : void

Приватные методы

Метод Описание
ClearIrcGatewayMessages ( int GatewayID ) : void

Remove messages in the pending queue for an IRC gateway.

Client_OnChannelMessage ( object sender, IrcEventArgs e ) : void
Client_OnChannelMessageDispatch ( object sender, IrcEventArgs e ) : void
Client_OnError ( object sender, Meebey e ) : void
Client_OnErrorMessage ( object sender, IrcEventArgs e ) : void
Client_OnRawMessage ( object sender, IrcEventArgs e ) : void
CreateIngameIrcCommands ( ) : void

Set up the ingame command list.

DatabaseSynchronizationThreadRoutine ( ) : void

This thread periodically queries the database to identify whether any IRC gateway messages are awaiting dispatch; if so, messages are sent.

ExecuteQuery ( string Query ) : MySqlDataReader

Execute a query.

ExecuteQueryNoReader ( string Query ) : void

Execute a query that returns nothing.

ExecuteQueryNoReaderAsync ( string Query ) : void

Execute a query that returns nothing using a worker thread.

GetPageFromPlayerId ( ) : int
GetPointBuyValue ( int Results ) : int
GetServerHealthStatusString ( int HealthStatus ) : string
IncrementStatistic ( string Statistic ) : void

Bump a statistic counter in the database.

IngameCommand_Channels ( int PlayerId, int CharacterServerId, string Text ) : void

List available channels.

IngameCommand_Help ( int PlayerId, int CharacterServerId, string Text ) : void

Display a listing of available IRC extension commands.

IngameCommand_Search ( int PlayerId, int CharacterServerId, string Text ) : void

Search the web.

IngameCommand_Srd ( int PlayerId, int CharacterServerId, string Text ) : void

Search the D20 SRD.

IngameCommand_Who ( int PlayerId, int CharacterServerId, string Text ) : void

List users in a channel.

OnCommandBing ( string Source, string Query, string RestrictURL ) : void
OnCommandBing_AzureAPI ( string Source, string Query ) : void
OnCommandBing_OldAPI ( string Source, string Query, string RestrictURL ) : void
OnCommandGoogle ( string Source, string Query ) : void
OnCommandHelp ( string Source ) : void
OnCommandPage ( string Source, string Nick, string Query ) : void
OnCommandPlayers ( string Source ) : void
OnCommandRoll ( string Source, string Cmd ) : void
OnCommandSeen ( string Source, string Query ) : void
OnCommandSrd ( string Source, string Query ) : void
OnCommandStats ( string Source, string Cmd ) : void
OnCommandWeather ( string Source, string Query ) : void
OnCommandWikipedia ( string Source, string Query ) : void
OnInGameIrcCommand ( int PlayerId, int CharacterServerId, string Command ) : void

Dispatch an in-game IRC command to its handler.

RunSynchronizationCycle ( int GatewayID ) : void

Run the database synchronization cycle.

SendMessage ( SendType Type, string Destination, string Message ) : void

Send a message to IRC.

SendMessageToPlayer ( int DestinationPlayerId, int DestinationServerId, string Message ) : void

Send a message to a player as a freeform notice text message.

SetConnectionString ( ) : void

Описание методов

ALFAIRCBot() публичный метод

public ALFAIRCBot ( ) : System
Результат System

Run() публичный метод

public Run ( ) : void
Результат void