mIRC Home    About    Download    Register    News    Help

Page 2 of 2 < 1 2
Topic Options
#253756 - 01/07/15 11:52 PM Re: [Twitch] Ban Command [Re: OrFeAsGr]
DaGuyFromTv Offline
Pikka bird

Registered: 28/06/15
Posts: 13
BTW, how do you get the code in a box like you did?
_________________________
I'm a noob, please do not judge and any help is greatly appreciated.

Top
#253757 - 01/07/15 11:54 PM Re: [Twitch] Ban Command [Re: OrFeAsGr]
DaGuyFromTv Offline
Pikka bird

Registered: 28/06/15
Posts: 13
I'm not sure how you to add a mod to the list?
_________________________
I'm a noob, please do not judge and any help is greatly appreciated.

Top
#253758 - 02/07/15 05:24 AM Re: [Twitch] Ban Command [Re: OrFeAsGr]
DaGuyFromTv Offline
Pikka bird

Registered: 28/06/15
Posts: 13
Also, the

if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}

part does not seem to work...
_________________________
I'm a noob, please do not judge and any help is greatly appreciated.

Top
#253759 - 02/07/15 06:53 AM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
splinny Offline
Fjord artisan

Registered: 14/05/15
Posts: 249
Originally Posted By: DaGuyFromTv
BTW, how do you get the code in a box like you did?

"code" and "/code" in [].
_________________________
Dont give a fish - teach to fish!

Top
#253760 - 02/07/15 06:54 AM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
splinny Offline
Fjord artisan

Registered: 14/05/15
Posts: 249
Originally Posted By: DaGuyFromTv
Also, the

if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}

part does not seem to work...

Not sure, but the reason could be in
Code:
:!banhammer *
try change it to
Code:
:!banhammer*
and check again.
_________________________
Dont give a fish - teach to fish!

Top
#253761 - 02/07/15 06:55 AM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
splinny Offline
Fjord artisan

Registered: 14/05/15
Posts: 249
Originally Posted By: DaGuyFromTv
I'm not sure how you to add a mod to the list?

Type "/addmod some_mod_nick" in your bot`s editbox.
_________________________
Dont give a fish - teach to fish!

Top
#253762 - 02/07/15 07:25 AM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
n3wb Offline
Nutrimatic drinks dispenser

Registered: 29/06/15
Posts: 9
GREAT one thing can we add a code to it where a ban sound triggers when someone is banned from the channel? That will make it even cooler!

Top
#253763 - 02/07/15 10:07 AM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
n3wb Offline
Nutrimatic drinks dispenser

Registered: 29/06/15
Posts: 9
So I created a sound for the ban hammer but I can only get it to play when I type it in

on *:text: The ban hammer *:#:{
splay -w C:\Users\Solo Seven Records\AppData\Roaming\mIRC\sounds\BANNED.wav
}


The bot replies with the same stuff but the issue is that the sound does not play! So i am wondering how can i get the sound to play only when the bot states the text and not the users!

Top
#253764 - 02/07/15 07:35 PM Re: [Twitch] Ban Command [Re: n3wb]
DaGuyFromTv Offline
Pikka bird

Registered: 28/06/15
Posts: 13
The sound thing would be nice, but the thing is I'm hosting the bot for my friend so if it was to play on his stream, he would have to download it.
_________________________
I'm a noob, please do not judge and any help is greatly appreciated.

Top
#253767 - 04/07/15 05:14 PM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
OrFeAsGr Offline
Fjord artisan

Registered: 01/02/15
Posts: 243
Loc: Greece
hey! did it work with the correction? smile

Top
#253780 - 06/07/15 12:58 PM Re: [Twitch] Ban Command [Re: OrFeAsGr]
DaGuyFromTv Offline
Pikka bird

Registered: 28/06/15
Posts: 13
Sort of, the could you please specify who you want to strike thing doesn't really work? It asks me the question and then says <no one> has been banned.
_________________________
I'm a noob, please do not judge and any help is greatly appreciated.

Top
#253831 - 08/07/15 10:14 PM Re: [Twitch] Ban Command [Re: DaGuyFromTv]
OrFeAsGr Offline
Fjord artisan

Registered: 01/02/15
Posts: 243
Loc: Greece
try this one i think it will work
Code:
on *:text:!banhammer *:#brozerian: { 
var %user = $nick
if ($istok(%mods,$nick,32)) {
if ($2 == $null) {
msg $chan /me >: Which user you would like to strike with the ban hammer.
}
elseif ($2 != $null) {
if ($2 isop #) {
msg $chan /me >: You can't ban Ops in $chan
}
elseif ($2 !isop #) {
msg $chan /me >: The ban hammer has striked on $2 .
msg $chan /ban $2
}
}
}
elseif (!$istok(%mods,$nick,32)) {
msg $chan You are not in my mods list.
}
}

alias addmod { if (!$1) { echo -at Error: Please input a nick to add in mods list } | elseif ($1) { set %mods $addtok(%mods,$1,32) | echo -at $1 Added to Mods List } | }

Top
Page 2 of 2 < 1 2