Page 1 of 1

Dedication post

Posted: Sun Nov 17, 2013 11:21 am
by firkkhamhall
Hello, please excuse the thick person here.

I know I can PM the Bot and say Dedicate (nickname) Then I can make the bot say Current song requested by (nickname) Thank you

What I want to be able to do is PM the bot with Request (nick1) (nick2) and get the bot to say Current song was requested by (nick1) and goes out to (nick2) or similar

I have tried and failed several time, any help much appreciated

Tanks :)

Re: Dedication post

Posted: Sun Nov 17, 2013 12:36 pm
by Indy
There is no automatic way to make AutoDJ say it, but you can use a custom trigger to do it.
ie. !reqded=PRIVMSG #channel :Current song was requested by $1 and goes out to $2

Re: Dedication post

Posted: Sun Nov 17, 2013 12:47 pm
by firkkhamhall
Thanks for the answer.

Now that's what I thought but, the bot just repeats Current song was requested by $1 and goes out to $2 Not evaluating $1 or $2.

I should add, I am using :
!reqded=PRIVMSG #channel :Current song was requested by $1 and goes out to $2

as I want to PM the message to the bot :)

Re: Dedication post

Posted: Sun Nov 17, 2013 12:57 pm
by Indy
I added support for the $ tokens in PMs and it's uploading now. Your Package Manager will have the update in a few minutes.

Re: Dedication post

Posted: Sun Nov 17, 2013 1:01 pm
by firkkhamhall
Every time I have to ask a question in here, it reminds me why I use this RadioBot.

Indy you are an absolute star and this is worth every penny. :D Thank you so much. I thought it was half right in my scripting :)

Re: Dedication post

Posted: Sun Nov 17, 2013 6:17 pm
by firkkhamhall
Okay that all works now Indy, thank you.

Is there any way I can get the bot to react to a word without a trigger?

i.e I create a lever 4 user and, as soon as the lever 4 user says a word, the bot will react to it?
I read that you can make all the commands level access only, is this as simple as :

4/!hi=NOTICE %nick :Hello %nick, I'm %me ??

Thanks

Re: Dedication post

Posted: Sun Nov 17, 2013 6:24 pm
by Indy
Not in the config files, but you could with a plugin or Lua script.

Re: Dedication post

Posted: Mon Nov 18, 2013 3:07 pm
by firkkhamhall
Looks like I will have to start reading the Wiki word for word lol

So, I have a command that works, how do I make it level specific ?

?requested=PRIVMSG #chan :This song was requested by $1 especially for $2 $3- Thank you \o/

Re: Dedication post

Posted: Mon Nov 18, 2013 3:59 pm
by Indy
There are no user levels anymore since IRCBot v5, you just have user flags. The ircbot.text entry is just like the level system but you enter a user flag instead of a number:

Example: !listeners=m/PRIVMSG %chan :Current listener count: %clients
The user would have to have the +m flag to use the command. Roughly +m would be the old level 1, +o = level 2, +d = level 3/4 DJ
You can use any of the User Flags http://wiki.shoutirc.com/index.php/User_Flags or letters that aren't in use (I'd use the capital letters A-F since I'll use those last so they won't conflict with any other plugins or anything.)