mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2015
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
How would I make the Commands !addcom <command> <text>
!editcom <command> <text>
!delcom <command>
?

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
There's lots of these floating around out there.

Here's one http://hawkee.com/snippet/10160/


twitter @keyeslol
Joined: Nov 2015
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Doesnt seem to work

Joined: Jan 2004
Posts: 1,352
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,352
Well then learn what you're doing

Joined: Nov 2015
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Dont you think I tried that? I have been trying for hours, watching tutorials, everything, nothing works.

Joined: Jan 2004
Posts: 1,352
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,352
"Doesn't work, nothing works" are not helpful. What does work? Can you write a simple script to react to user input? Can you read from a file? Can you write to a file? Where is your code? At what line is it failing?

Joined: Nov 2015
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Basically, just nothing happens

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
So i just opened a fresh copy of mIRC, copy pasted this script in. You'll also need to turn the bot on, look at the readme at the top for the command.

It works fine, there is one slight modificaiton you'll need to do if you (the broadcaster) are the one issuing commands.

Change line 56, 115, 127 to:

Code:
if (($nick == your_name) || ($nick isop #)) 


You can also do this automatically, which is the preferred way of doing things, with the following code (again put change the lines of code listed above).

Code:
set -u10 %broadcaster $iif($2,$2,$mid(#,2-))
if (($nick == %broadcaster) || ($nick isop #))


And to Loki's point (i'm fairly new here as well), we don't like to write code for you, but we are more than happy to help when you get stuck. In this case, you really haven't debug'd any of your code or shown effort to figure it out.

Last edited by keyeslol; 17/11/15 09:45 PM.

twitter @keyeslol
Joined: Feb 2015
Posts: 12
S
Pikka bird
Offline
Pikka bird
S
Joined: Feb 2015
Posts: 12
That hawkee.com script does mostly work as I have it with a friend's channel bot as seen here. Only part that doesnt seem to work with Twitch is the !cmd thing, but oh well I'll look at that later.

You must be doing something wrong with it.

Joined: Nov 2015
Posts: 6
B
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Still doesnt seem to work for me...
Nothing at all happens...
The Bot says nothing in chat.

Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
Originally Posted By: Scootycoolguy
That hawkee.com script does mostly work as I have it with a friend's channel bot as seen here. Only part that doesnt seem to work with Twitch is the !cmd thing, but oh well I'll look at that later.

You must be doing something wrong with it.


You can make this work, with the whisper system. I don't personally use this one, but with a little thought could make it work.


twitter @keyeslol
Joined: May 2015
Posts: 133
K
Vogon poet
Offline
Vogon poet
K
Joined: May 2015
Posts: 133
Originally Posted By: Benunzee
Still doesnt seem to work for me...
Nothing at all happens...
The Bot says nothing in chat.


You do realize you have to turn the bot on...Did you even read the readme at the top of the script? Read line 24 and 25.

After that, you have to modify some code if you're the broadcaster.


twitter @keyeslol

Link Copied to Clipboard