Seuntjies DiceBot

DiceBot => Programmer Mode => Topic started by: Bullseye on June 09, 2021, 07:47:49 pm

Title: How to tip from DuckDice?
Post by: Bullseye on June 09, 2021, 07:47:49 pm
I have tried the following, but neither seem to work

tip(username,amount)
tip(amount,username)
withdraw(username, amount)


is there a way to tip another user on duckdice in program mode?

i saw this in the dicebot program:
Code: [Select]
public override bool InternalSendTip(string User, decimal amount)does this mean i can use InternalSendTip(user,amount) ?

Thank you,
Title: Re: How to tip from DuckDice?
Post by: Bullseye on June 10, 2021, 01:40:28 pm
OK, i got this working...

i changed my wdaccount variable from:
wdaccount = bobdobbs
to
wdaccount = "bobdobbs"

so, tip(3,wdaccount) works now, so i guess tip(3,"bobdobbs") would work.  Next question:
Duckdice chat has a tip function like this: /tip {username} {amount} {currency} {comment?} {silent?}

Can i use that in my script to hide the tip from the chat?  Like tip(3,"bobdobbs",silent) ?
Title: Re: How to tip from DuckDice?
Post by: Seuntjie on June 10, 2021, 02:24:08 pm
Sorry for not replyinh faster, I wanted to test it to make sure they haven't removed/restricted the functionality before posting a solution.

Strings always need to be inside double quotes, otherwise the program just thinks bobdobbs is a variable.

Duckdice chat has a tip function like this: /tip {username} {amount} {currency} {comment?} {silent?}

Can i use that in my script to hide the tip from the chat?  Like tip(3,"bobdobbs",silent) ?
No.
Title: Re: How to tip from DuckDice?
Post by: Bullseye on June 11, 2021, 09:44:19 pm
Thanks.