This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

crypto/coins price script

Help for those learning Tcl or writing their own scripts.
Post Reply
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

crypto/coins price script

Post by nobody »

Kia Ora,

needs help, i tried and tried and keep trying but hoping to have a way to do it here

Code: Select all

# Bind !coin command for user requests
bind pub - !coin fetch_coin_command

# Function to handle the !coin command
proc fetch_coin_command {nick host handle channel arg} {
    if {[string length $arg] == 0} {
        putserv "PRIVMSG $channel :Usage: !coin <symbol>"
        return
    }

    set data [fetch_coin_data $arg]
    putserv "PRIVMSG $channel :$data"
}
!coin <coin_symbol> ex: !coin btc, !coin eth - works fine
- is it possible to change the code to handle !<coin_symbol> instead? ex: !btc !eth !xmr

Cheers
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
User avatar
CrazyCat
Revered One
Posts: 1332
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: crypto/coins price script

Post by CrazyCat »

With this piece of code, no.
We don't know what does fetch_coin_data and how it works.

Put the full script and peharps we can help you.
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

Kia Ora
CrazyCat wrote: ↑Fri Mar 07, 2025 6:46 pm With this piece of code, no.
We don't know what does fetch_coin_data and how it works.

Put the full script and peharps we can help you.
can i send your the full script in PM?
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
User avatar
Carlin0
Halfop
Posts: 49
Joined: Tue Dec 04, 2018 3:41 pm
Location: Italy

Re: crypto/coins price script

Post by Carlin0 »

nobody wrote: ↑Fri Mar 07, 2025 9:06 pm Kia Ora
CrazyCat wrote: ↑Fri Mar 07, 2025 6:46 pm With this piece of code, no.
We don't know what does fetch_coin_data and how it works.

Put the full script and peharps we can help you.
can i send your the full script in PM?
Is it secret ?
"From the diamonds nothing is born, from the manure the flowers are born ..."
--- F. De Andrè ---
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

Carlin0 wrote: ↑Sat Mar 08, 2025 5:09 am
nobody wrote: ↑Fri Mar 07, 2025 9:06 pm Kia Ora
CrazyCat wrote: ↑Fri Mar 07, 2025 6:46 pm With this piece of code, no.
We don't know what does fetch_coin_data and how it works.

Put the full script and peharps we can help you.
can i send your the full script in PM?
Is it secret ?
yes because there are people selling it and i don't wanna destroy there business
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
User avatar
Carlin0
Halfop
Posts: 49
Joined: Tue Dec 04, 2018 3:41 pm
Location: Italy

Re: crypto/coins price script

Post by Carlin0 »

nobody wrote: ↑Sat Mar 08, 2025 6:10 am
Carlin0 wrote: ↑Sat Mar 08, 2025 5:09 am
nobody wrote: ↑Fri Mar 07, 2025 9:06 pm Kia Ora

can i send your the full script in PM?
Is it secret ?
yes because there are people selling it and i don't wanna destroy there business
The doubt arises that there is also something illegal
"From the diamonds nothing is born, from the manure the flowers are born ..."
--- F. De Andrè ---
User avatar
CrazyCat
Revered One
Posts: 1332
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: crypto/coins price script

Post by CrazyCat »

nobody wrote: ↑Sat Mar 08, 2025 6:10 am yes because there are people selling it and i don't wanna destroy there business
So ask peoples who wrote and sold it.
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

CrazyCat wrote: ↑Sat Mar 08, 2025 1:06 pm
nobody wrote: ↑Sat Mar 08, 2025 6:10 am yes because there are people selling it and i don't wanna destroy there business
So ask peoples who wrote and sold it.
this is not their product but nway thank you for your response :)
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

Carlin0 wrote: ↑Sat Mar 08, 2025 8:44 am
nobody wrote: ↑Sat Mar 08, 2025 6:10 am
Carlin0 wrote: ↑Sat Mar 08, 2025 5:09 am

Is it secret ?
yes because there are people selling it and i don't wanna destroy there business
The doubt arises that there is also something illegal
it's your opinion hehehe nway thank you for your response but since when crypto prices tcl script became illegal, are you kidding me bro?
Last edited by nobody on Sat Mar 08, 2025 1:25 pm, edited 1 time in total.
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

I sent the script to crazycat but i guess he can't or don't have the interest about it, nway thank you egghelp or eggheads hahaha :D :D :D :D

<nobody>!coin btc
<ethereum> ««[ Bitcoin (BTC) ]»» Price: $85849.37238241105 USD ☒ 1h: β–Ό -0.16791785% ☒ 1d: β–Ό -1.34674824% ☒ 1w: β–² 0.80632246% ☒ 1m: β–Ό -11.24571993% ☒ Last update: Sat, 08-Mar-25 17:24:00 NZDT ☒ [ ᴇxᴘʟᴏΙͺᴛᴇʀ ] ☒
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
User avatar
CrazyCat
Revered One
Posts: 1332
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Re: crypto/coins price script

Post by CrazyCat »

nobody wrote: ↑Sat Mar 08, 2025 1:22 pm I sent the script to crazycat but i guess he can't or don't have the interest about it, nway thank you egghelp or eggheads hahaha :D :D :D :D

<nobody>!coin btc
<ethereum> ««[ Bitcoin (BTC) ]»» Price: $85849.37238241105 USD ☒ 1h: β–Ό -0.16791785% ☒ 1d: β–Ό -1.34674824% ☒ 1w: β–² 0.80632246% ☒ 1m: β–Ό -11.24571993% ☒ Last update: Sat, 08-Mar-25 17:24:00 NZDT ☒ [ ᴇxᴘʟᴏΙͺᴛᴇʀ ] ☒
You deleted your PM before I can read it, so sure I can't help.
It"s not because I answer on the forum at a time that I'm reading it few minutes after. I often read the forum then leave it for some hours.
n
nobody
Voice
Posts: 26
Joined: Fri Apr 03, 2020 10:01 pm

Re: crypto/coins price script

Post by nobody »

CrazyCat wrote: ↑Sun Mar 09, 2025 3:37 am
nobody wrote: ↑Sat Mar 08, 2025 1:22 pm I sent the script to crazycat but i guess he can't or don't have the interest about it, nway thank you egghelp or eggheads hahaha :D :D :D :D

<nobody>!coin btc
<ethereum> ««[ Bitcoin (BTC) ]»» Price: $85849.37238241105 USD ☒ 1h: β–Ό -0.16791785% ☒ 1d: β–Ό -1.34674824% ☒ 1w: β–² 0.80632246% ☒ 1m: β–Ό -11.24571993% ☒ Last update: Sat, 08-Mar-25 17:24:00 NZDT ☒ [ ᴇxᴘʟᴏΙͺᴛᴇʀ ] ☒
You deleted your PM before I can read it, so sure I can't help.
It"s not because I answer on the forum at a time that I'm reading it few minutes after. I often read the forum then leave it for some hours.
no worries mate, thank you for your time
πŸ††πŸ…·πŸ…΄πŸ…½ πŸ…½πŸ…ΎπŸ†ƒπŸ…·πŸ…ΈπŸ…½πŸ…Ά πŸ…ΆπŸ…ΎπŸ…΄πŸ†‚ πŸ†πŸ…ΈπŸ…ΆπŸ…·πŸ†ƒ, πŸ…ΆπŸ…Ύ πŸ…»πŸ…΄πŸ…΅πŸ†ƒ!
Post Reply