C# Class SteamBot.DogeTipBotHandler

Inheritance: UserHandler
Show file Open project: natoshi/steamdogebot

Public Methods

Method Description
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

Private Methods

Method Description
getConversionRate ( ) : double
getSteamID64 ( string URL ) : string
getSteamName ( SteamID ID ) : string
randomStringBuilder ( ) : string
readElement ( XmlDocument document, string element ) : string
returnQuery ( string query ) : DataSet

Method Details

DogeTipBotHandler() public method

public DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
bot Bot
sid SteamKit2.SteamID
return System.Collections.Generic

OnAcceptedFriend() public method

public OnAcceptedFriend ( SteamID id ) : void
id SteamKit2.SteamID
return void

OnAddedFriend() public method

public OnAddedFriend ( SteamID id ) : void
id SteamKit2.SteamID
return void

OnBefriend() public method

public OnBefriend ( SteamID id ) : void
id SteamKit2.SteamID
return void

OnChatRoomMessage() public method

public OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
chatID SteamKit2.SteamID
sender SteamKit2.SteamID
message string
return void

OnFriendAdd() public method

public OnFriendAdd ( ) : bool
return bool

OnFriendRemove() public method

public OnFriendRemove ( ) : void
return void

OnGroupAdd() public method

public OnGroupAdd ( ) : bool
return bool

OnLoginCompleted() public method

public OnLoginCompleted ( ) : bool
return bool

OnMessage() public method

public OnMessage ( string message, EChatEntryType type ) : void
message string
type EChatEntryType
return void

OnSteamMessage() public method

public OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
message string
chatID SteamKit2.SteamID
isChatroom bool
return bool

OnTradeAccept() public method

public OnTradeAccept ( ) : void
return void

OnTradeAddItem() public method

public OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
return void

OnTradeError() public method

public OnTradeError ( string error ) : void
error string
return void

OnTradeInit() public method

public OnTradeInit ( ) : void
return void

OnTradeMessage() public method

public OnTradeMessage ( string message ) : void
message string
return void

OnTradeReady() public method

public OnTradeReady ( bool ready ) : void
ready bool
return void

OnTradeRemoveItem() public method

public OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
return void

OnTradeRequest() public method

public OnTradeRequest ( ) : bool
return bool

OnTradeSuccess() public method

public OnTradeSuccess ( ) : void
return void

OnTradeTimeout() public method

public OnTradeTimeout ( ) : void
return void

Validate() public method

public Validate ( ) : bool
return bool

checkPeriodically() public method

public checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
sender object
e MySql.Data.MySqlClient.DoWorkEventArgs
return void

command_add() public method

Request adding DOGE to balance
public command_add ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_alias() public method

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
return bool

command_balance() public method

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
return bool

command_confirm() public method

Confirms a pending tip
public command_confirm ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_deny() public method

Denies a pending tip
public command_deny ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_donate() public method

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
return bool

command_help() public method

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
return bool

command_labels() public method

Show a list of enabled labels
public command_labels ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_register() public method

Registers a user
public command_register ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_tip() public method

Tip a user!
public command_tip ( SteamID sender, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
chatID SteamKit2.SteamID
isChatroom bool
return bool

command_withdraw() public method

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
return bool

completeTip() public method

public completeTip ( object tip_input ) : bool
tip_input object
return bool

getTipNotification() public method

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
return string

registerUser() public method

public registerUser ( SteamID userID ) : bool
userID SteamKit2.SteamID
return bool

sendMessage() public static method

public static sendMessage ( SteamID userReceiver, SteamID chatReceiver, bool chatroom, string message ) : void
userReceiver SteamKit2.SteamID
chatReceiver SteamKit2.SteamID
chatroom bool
message string
return void