C# Class SteamBot.DogeTipBotHandler

Inheritance: UserHandler
Afficher le fichier Open project: natoshi/steamdogebot

Méthodes publiques

Méthode 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

Méthode 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 méthode

public DogeTipBotHandler ( Bot bot, SteamID sid ) : System.Collections.Generic
bot Bot
sid SteamKit2.SteamID
Résultat System.Collections.Generic

OnAcceptedFriend() public méthode

public OnAcceptedFriend ( SteamID id ) : void
id SteamKit2.SteamID
Résultat void

OnAddedFriend() public méthode

public OnAddedFriend ( SteamID id ) : void
id SteamKit2.SteamID
Résultat void

OnBefriend() public méthode

public OnBefriend ( SteamID id ) : void
id SteamKit2.SteamID
Résultat void

OnChatRoomMessage() public méthode

public OnChatRoomMessage ( SteamID chatID, SteamID sender, string message ) : void
chatID SteamKit2.SteamID
sender SteamKit2.SteamID
message string
Résultat void

OnFriendAdd() public méthode

public OnFriendAdd ( ) : bool
Résultat bool

OnFriendRemove() public méthode

public OnFriendRemove ( ) : void
Résultat void

OnGroupAdd() public méthode

public OnGroupAdd ( ) : bool
Résultat bool

OnLoginCompleted() public méthode

public OnLoginCompleted ( ) : bool
Résultat bool

OnMessage() public méthode

public OnMessage ( string message, EChatEntryType type ) : void
message string
type EChatEntryType
Résultat void

OnSteamMessage() public méthode

public OnSteamMessage ( SteamID sender, string message, SteamID chatID, bool isChatroom ) : bool
sender SteamKit2.SteamID
message string
chatID SteamKit2.SteamID
isChatroom bool
Résultat bool

OnTradeAccept() public méthode

public OnTradeAccept ( ) : void
Résultat void

OnTradeAddItem() public méthode

public OnTradeAddItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
Résultat void

OnTradeError() public méthode

public OnTradeError ( string error ) : void
error string
Résultat void

OnTradeInit() public méthode

public OnTradeInit ( ) : void
Résultat void

OnTradeMessage() public méthode

public OnTradeMessage ( string message ) : void
message string
Résultat void

OnTradeReady() public méthode

public OnTradeReady ( bool ready ) : void
ready bool
Résultat void

OnTradeRemoveItem() public méthode

public OnTradeRemoveItem ( SteamBot.Schema schemaItem, Inventory inventoryItem ) : void
schemaItem SteamBot.Schema
inventoryItem Inventory
Résultat void

OnTradeRequest() public méthode

public OnTradeRequest ( ) : bool
Résultat bool

OnTradeSuccess() public méthode

public OnTradeSuccess ( ) : void
Résultat void

OnTradeTimeout() public méthode

public OnTradeTimeout ( ) : void
Résultat void

Validate() public méthode

public Validate ( ) : bool
Résultat bool

checkPeriodically() public méthode

public checkPeriodically ( object sender, MySql.Data.MySqlClient.DoWorkEventArgs e ) : void
sender object
e MySql.Data.MySqlClient.DoWorkEventArgs
Résultat void

command_add() public méthode

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

command_alias() public méthode

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
Résultat bool

command_balance() public méthode

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
Résultat bool

command_confirm() public méthode

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

command_deny() public méthode

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

command_donate() public méthode

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
Résultat bool

command_help() public méthode

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
Résultat bool

command_labels() public méthode

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

command_register() public méthode

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

command_tip() public méthode

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

command_withdraw() public méthode

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
Résultat bool

completeTip() public méthode

public completeTip ( object tip_input ) : bool
tip_input object
Résultat bool

getTipNotification() public méthode

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
Résultat string

registerUser() public méthode

public registerUser ( SteamID userID ) : bool
userID SteamKit2.SteamID
Résultat bool

sendMessage() public static méthode

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