mIRC Home    About    Download    Register    News    Help

Print Thread
Twitch Addcom editcom delcom Commands #255691 14/11/15 02:55 PM
Joined: Nov 2015
Posts: 6
B
Benunzee Offline OP
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>
?

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255693 14/11/15 05:50 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
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
Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255725 15/11/15 05:46 PM
Joined: Nov 2015
Posts: 6
B
Benunzee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Doesnt seem to work

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255728 15/11/15 07:49 PM
Joined: Jan 2004
Posts: 1,276
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,276
Well then learn what you're doing

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255745 17/11/15 07:43 PM
Joined: Nov 2015
Posts: 6
B
Benunzee Offline OP
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.

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255746 17/11/15 08:24 PM
Joined: Jan 2004
Posts: 1,276
L
Loki12583 Online
Hoopy frood
Online
Hoopy frood
L
Joined: Jan 2004
Posts: 1,276
"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?

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255747 17/11/15 08:38 PM
Joined: Nov 2015
Posts: 6
B
Benunzee Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
B
Joined: Nov 2015
Posts: 6
Basically, just nothing happens

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255749 17/11/15 09:43 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
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
Re: Twitch Addcom editcom delcom Commands [Re: Loki12583] #255750 17/11/15 09:52 PM
Joined: Feb 2015
Posts: 12
S
Scootycoolguy Offline
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.

Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255751 17/11/15 10:19 PM
Joined: Nov 2015
Posts: 6
B
Benunzee Offline OP
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.

Re: Twitch Addcom editcom delcom Commands [Re: Scootycoolguy] #255752 17/11/15 10:52 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
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
Re: Twitch Addcom editcom delcom Commands [Re: Benunzee] #255753 17/11/15 10:54 PM
Joined: May 2015
Posts: 133
K
keyeslol Offline
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