mIRC Home    About    Download    Register    News    Help

Print Thread
Page 2 of 2 1 2
Re: [Twitch] Ban Command [Re: OrFeAsGr] #253756
01/07/15 10:52 PM
01/07/15 10:52 PM
Joined: Jun 2015
Posts: 13
D
DaGuyFromTv Offline OP
Pikka bird
DaGuyFromTv  Offline OP
Pikka bird
D

Joined: Jun 2015
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.
Re: [Twitch] Ban Command [Re: OrFeAsGr] #253757
01/07/15 10:54 PM
01/07/15 10:54 PM
Joined: Jun 2015
Posts: 13
D
DaGuyFromTv Offline OP
Pikka bird
DaGuyFromTv  Offline OP
Pikka bird
D

Joined: Jun 2015
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.
Re: [Twitch] Ban Command [Re: OrFeAsGr] #253758
02/07/15 04:24 AM
02/07/15 04:24 AM
Joined: Jun 2015
Posts: 13
D
DaGuyFromTv Offline OP
Pikka bird
DaGuyFromTv  Offline OP
Pikka bird
D

Joined: Jun 2015
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.
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253759
02/07/15 05:53 AM
02/07/15 05:53 AM
Joined: May 2015
Posts: 249
splinny Offline
Fjord artisan
splinny  Offline
Fjord artisan

Joined: May 2015
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!
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253760
02/07/15 05:54 AM
02/07/15 05:54 AM
Joined: May 2015
Posts: 249
splinny Offline
Fjord artisan
splinny  Offline
Fjord artisan

Joined: May 2015
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!
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253761
02/07/15 05:55 AM
02/07/15 05:55 AM
Joined: May 2015
Posts: 249
splinny Offline
Fjord artisan
splinny  Offline
Fjord artisan

Joined: May 2015
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!
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253762
02/07/15 06:25 AM
02/07/15 06:25 AM
Joined: Jun 2015
Posts: 9
N
n3wb Offline
Nutrimatic drinks dispenser
n3wb  Offline
Nutrimatic drinks dispenser
N

Joined: Jun 2015
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!

Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253763
02/07/15 09:07 AM
02/07/15 09:07 AM
Joined: Jun 2015
Posts: 9
N
n3wb Offline
Nutrimatic drinks dispenser
n3wb  Offline
Nutrimatic drinks dispenser
N

Joined: Jun 2015
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!

Re: [Twitch] Ban Command [Re: n3wb] #253764
02/07/15 06:35 PM
02/07/15 06:35 PM
Joined: Jun 2015
Posts: 13
D
DaGuyFromTv Offline OP
Pikka bird
DaGuyFromTv  Offline OP
Pikka bird
D

Joined: Jun 2015
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.
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253767
04/07/15 04:14 PM
04/07/15 04:14 PM
Joined: Feb 2015
Posts: 243
Greece
O
OrFeAsGr Offline
Fjord artisan
OrFeAsGr  Offline
Fjord artisan
O

Joined: Feb 2015
Posts: 243
Greece
hey! did it work with the correction? smile

Re: [Twitch] Ban Command [Re: OrFeAsGr] #253780
06/07/15 11:58 AM
06/07/15 11:58 AM
Joined: Jun 2015
Posts: 13
D
DaGuyFromTv Offline OP
Pikka bird
DaGuyFromTv  Offline OP
Pikka bird
D

Joined: Jun 2015
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.
Re: [Twitch] Ban Command [Re: DaGuyFromTv] #253831
08/07/15 09:14 PM
08/07/15 09:14 PM
Joined: Feb 2015
Posts: 243
Greece
O
OrFeAsGr Offline
Fjord artisan
OrFeAsGr  Offline
Fjord artisan
O

Joined: Feb 2015
Posts: 243
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 } | }

Page 2 of 2 1 2