Sponsored Links




Page 2 of 2 < 1 2
Topic Options
Rate This Topic
#2305 - 06/24/08 10:58 PM Re: Make a bot respond to a command? [Re: jwire4]
techgeek Offline
newbie

Registered: 06/21/08
Posts: 33
Loc: South Carolina
Ok, I have that all sorted out and am still working on programming everything. However, there is one command I would like to add that the current script will not do. When someone types !time, I want the bot to show my current time in the syntax "Ryan's Current Time Is <time>" where <time> is my current time. This is sort of like the !time feature that Pixie uses in #chris. If someone could help me, that would be great.

P.S., as for the !help command, I just use !chanhelp.
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#2306 - 06/24/08 11:04 PM Re: Make a bot respond to a command? [Re: techgeek]
dave Offline
n00b

Registered: 04/07/08
Posts: 17
Loc: canada
ok so to do that the script will look like

on :text:!time:#chatroom: {
if (($calc(($ctime- %lastupdatetime)) >= 0) || (!%lastupdatetime)) {
set %lastupdatetime $ctime
/msg $chan Ryan's Current Time Is $time
}
}

change #chatroom to your chat room name
~easy_way
_________________________
O is for on the dark side, beacouse we have some fresh cookies. (COOKIES)
WOO!

Top
#2307 - 06/25/08 12:18 AM Re: Make a bot respond to a command? [Re: dave]
techgeek Offline
newbie

Registered: 06/21/08
Posts: 33
Loc: South Carolina
Works great, thanks. I do have another script like that that makes my bot respond to a command. I wasn't sure what value you modify or what value to put in. Thanks again.
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
#2308 - 06/25/08 12:26 AM Re: Make a bot respond to a command? [Re: techgeek]
Scoobs8 Offline
n00b

Registered: 02/02/08
Posts: 3
Loc: Mobile, AL - USA
It depends on what the command is, and what you want it to do. But the basic script to make a bot message something to a channel when you type !command would be this:

on :text:!command:#yourchatroomnamegoeshere: {
msg $chan Command has been executed!
}

Let me know if you would like to be more specific.

I suggest you read the mIRC scripting help file by typing the following in mIRC:

/help on text
/help $chan

-Scoobs8
-WyldRyde Groupie

Top
#2309 - 06/25/08 12:49 AM Re: Make a bot respond to a command? [Re: Scoobs8]
techgeek Offline
newbie

Registered: 06/21/08
Posts: 33
Loc: South Carolina
Scoobs8, I don't need you butting in right now. I get perfect help from jwire4 and the other people that have been helping me. I think you posted that because you just wanted to get a post. I already have a more complicated script that works better than your piece of junk. Besides, it has a complicated variable in it. Just lay off and don't post in this topic.
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
#2314 - 06/25/08 03:08 PM Re: Make a bot respond to a command? [Re: techgeek]
usrbingeek Administrator Offline
WyldRyde Staff

Registered: 07/31/06
Posts: 482
Loc: Burlington, VT
RyanBecker, there is no need to be rude. Scoobs is just trying to be helpful and his post might be of benefit to others even if it's not beneficial for you.
_________________________
WyldRyde IRC Network
Steve Mermelstein
Root Admin

#!/usr/bin/geek
My Amazon.com Wishlist

Please no PMs. Please post to a topic instead so your question(s) may benefit others.

Top
#2645 - 07/18/08 01:00 AM Re: Make a bot respond to a command? [Re: usrbingeek]
techgeek Offline
newbie

Registered: 06/21/08
Posts: 33
Loc: South Carolina
Can someone lock this topic please? I don't need it open anymore. Thanks.
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
#2652 - 07/18/08 03:46 PM Re: Make a bot respond to a command? [Re: jwire4]
techgeek Offline
newbie

Registered: 06/21/08
Posts: 33
Loc: South Carolina
How do you make it so that when a certain nick joins the channel, a bot says something?
_________________________
Tomorrow's Forecast:
Sunni In Places, Shi'ite In Others.

Click Here To Go To My Forum!

Top
#2653 - 07/18/08 05:10 PM Re: Make a bot respond to a command? [Re: techgeek]
iBook Offline
n00b

Registered: 06/01/08
Posts: 9
Loc: Kokomo,Indiana,USA
if you want it to happen in any channel, use this,
on *:JOIN:#:{if ($nick == <the-nick-goes-here>) { /msg $chan <text-to-say-when-owner-joins> | halt }}
if not use this,
on *:JOIN:#<channel-you-want-it-to-say-it-in>:{ if ($nick == <the-nick-goes-here>) { /msg #<channel-used-earlier> <text-to-say-when-owner-joins> | halt }}

Top
Page 2 of 2 < 1 2


Recent Posts
mIRC Script Editor in WINE Crashes... constantly
by iAlex
Yesterday at 11:53 AM
Need Badword Kick Script!
by iAlex
11/30/08 11:30 AM
Bot file logging
by iAlex
11/30/08 11:12 AM
Reminding People of Rules
by usrbingeek
11/30/08 12:42 AM
-improved status bragginb
by iAlex
11/29/08 07:25 PM
Quick Moderation Alias
by Firebucket
11/29/08 07:07 PM
Voice
by Sn0vv
11/28/08 09:53 PM
Some Suggestions
by Sn0vv
11/28/08 09:16 PM
Thank You Moderators
by Sn0vv
11/28/08 09:07 PM
Rules for Voiced Users being Enforced More
by Sn0vv
11/28/08 08:58 PM
Accept and Deny private message scripts
by iAlex
11/28/08 08:36 AM
Topic Script!!!
by bradjoe96
11/27/08 08:53 PM
Recent Pics
mIRC on Linux
mIRC on Linux???
Computer Spam o_O
Who's Online
2 registered (Alicia, Justin), 6 Guests and 6 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
usrbingeek 482
Kat 276
iPhone 108
Phil 98
Freekie 86
CCMike 78
techman224 75
Justin 72
tengrrl 58
wirelesspacket 52
Terms Of Use
Use of this community signifies your agreement to the Terms Of Service and Conditions of Use.