C# Класс SteamBot.DogeTipBotHandler

Наследование: UserHandler
Показать файл Открыть проект

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

Метод Описание
DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
OnAcceptedFriend ( SteamID id ) : void
OnAddedFriend ( SteamID id ) : void
OnBefriend ( SteamID id ) : void
OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
OnFriendAdd ( ) : bool
OnFriendRemove ( ) : void
OnGroupAdd ( ) : bool
OnLoginCompleted ( ) : bool
OnMessage ( string message, EChatEntryType type ) : void
OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
OnTradeAccept ( ) : void
OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
OnTradeError ( string error ) : void
OnTradeInit ( ) : void
OnTradeMessage ( string message ) : void
OnTradeReady ( bool ready ) : void
OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
OnTradeRequest ( ) : bool
OnTradeSuccess ( ) : void
OnTradeTimeout ( ) : void
Validate ( ) : bool
checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
command_add ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Request adding DOGE to balance

command_alias ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Sets an alias for a particular Steam user per registered user. User can then easily and safely tip this Steam user.

command_balance ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Tells the user their account balance if registered

command_confirm ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Confirms a pending tip

command_deny ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Denies a pending tip

command_donate ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Send a donation (treated as tip to bot)

command_help ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Sends the user useful information on how to use the bot

command_labels ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Show a list of enabled labels

command_register ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Registers a user

command_tip ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Tip a user!

command_withdraw ( SteamID sender, SteamID chatID, bool isChatroom ) : bool

Withdraw an amount of DOGE to an address

completeTip ( object tip_input ) : bool
getTipNotification ( SteamID sender, double amount, string label, string tip_msg, bool anonymous ) : string
registerUser ( SteamID userID ) : bool
sendMessage ( SteamID userReceiver, SteamID chatReceiver, bool chatroom, string message ) : void

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

Метод Описание
getConversionRate ( ) : double
getSteamID64 ( string URL ) : string
getSteamName ( SteamID ID ) : string
randomStringBuilder ( ) : string
readElement ( XmlDocument document, string element ) : string
returnQuery ( string query ) : DataSet

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

DogeTipBotHandler() публичный Метод

public DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
bot Bot
sid SteamKit2.SteamID
Результат System.Collections.Generic

OnAcceptedFriend() публичный Метод

public OnAcceptedFriend ( SteamID id ) : void
id SteamKit2.SteamID
Результат void

OnAddedFriend() публичный Метод

public OnAddedFriend ( SteamID id ) : void
id SteamKit2.SteamID
Результат void

OnBefriend() публичный Метод

public OnBefriend ( SteamID id ) : void
id SteamKit2.SteamID
Результат void

OnChatRoomMessage() публичный Метод

public OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
chatID SteamKit2.SteamID
sender SteamKit2.SteamID
message string
Результат void

OnFriendAdd() публичный Метод

public OnFriendAdd ( ) : bool
Результат bool

OnFriendRemove() публичный Метод

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

OnGroupAdd() публичный Метод

public OnGroupAdd ( ) : bool
Результат bool

OnLoginCompleted() публичный Метод

public OnLoginCompleted ( ) : bool
Результат bool

OnMessage() публичный Метод

public OnMessage ( string message, EChatEntryType type ) : void
message string
type EChatEntryType
Результат void

OnSteamMessage() публичный Метод

public OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
message string
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

OnTradeAccept() публичный Метод

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

OnTradeAddItem() публичный Метод

public OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
Результат void

OnTradeError() публичный Метод

public OnTradeError ( string error ) : void
error string
Результат void

OnTradeInit() публичный Метод

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

OnTradeMessage() публичный Метод

public OnTradeMessage ( string message ) : void
message string
Результат void

OnTradeReady() публичный Метод

public OnTradeReady ( bool ready ) : void
ready bool
Результат void

OnTradeRemoveItem() публичный Метод

public OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
Результат void

OnTradeRequest() публичный Метод

public OnTradeRequest ( ) : bool
Результат bool

OnTradeSuccess() публичный Метод

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

OnTradeTimeout() публичный Метод

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

Validate() публичный Метод

public Validate ( ) : bool
Результат bool

checkPeriodically() публичный Метод

public checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
sender object
e MySql.Data.MySqlClient.DoWorkEventArgs
Результат void

command_add() публичный Метод

Request adding DOGE to balance
public command_add ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_alias() публичный Метод

Sets an alias for a particular Steam user per registered user. User can then easily and safely tip this Steam user.
public command_alias ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_balance() публичный Метод

Tells the user their account balance if registered
public command_balance ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_confirm() публичный Метод

Confirms a pending tip
public command_confirm ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_deny() публичный Метод

Denies a pending tip
public command_deny ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_donate() публичный Метод

Send a donation (treated as tip to bot)
public command_donate ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_help() публичный Метод

Sends the user useful information on how to use the bot
public command_help ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_labels() публичный Метод

Show a list of enabled labels
public command_labels ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_register() публичный Метод

Registers a user
public command_register ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_tip() публичный Метод

Tip a user!
public command_tip ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

command_withdraw() публичный Метод

Withdraw an amount of DOGE to an address
public command_withdraw ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
Результат bool

completeTip() публичный Метод

public completeTip ( object tip_input ) : bool
tip_input object
Результат bool

getTipNotification() публичный Метод

public getTipNotification ( SteamID sender, double amount, string label, string tip_msg, bool anonymous ) : string
sender SteamKit2.SteamID
amount double
label string
tip_msg string
anonymous bool
Результат string

registerUser() публичный Метод

public registerUser ( SteamID userID ) : bool
userID SteamKit2.SteamID
Результат bool

sendMessage() публичный статический Метод

public static sendMessage ( SteamID userReceiver, SteamID chatReceiver, bool chatroom, string message ) : void
userReceiver SteamKit2.SteamID
chatReceiver SteamKit2.SteamID
chatroom bool
message string
Результат void